You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kopia 0.17 that's installed in server mode on Ubuntu 23.04.
I'm trying to configure the Kopia via Ansible and Kopia cli and struggling with the 'policy set': kopia policy set "user@host:/some/path" --before-snapshot-root-action "/path/to/script.sh script-param1 script-param2"
After running the above command and looking at the Kopia UI policy page for the 'user@host:/some/path' the 'Before Snapshot' field (both defined and effective) remains empty no matter what I've tried although the 'kopia policy show ' shows that the before action is correctly set:
Run command before snapshot root: (defined for this target)
Command:
/path/to/script.sh script-param1 script-param2
Mode: essential
Timeout: 1m0s
On the other hand, if I set the same script but on the Server UI manually it is set correctly and visible in the UI and the snapshot runs successfully. But the kopia policy show shows it as an embedded script (not as Command as shown above) :
Run command before snapshot root: (defined for this target)
Embedded script (stored in repository): <<<<<<<<---------
/path/to/script.sh script-param1 script-param2
Mode: essential
Timeout: 1m0s
IMO it's a bug.
The text was updated successfully, but these errors were encountered:
ADDED: when the before/after action command is set via API as described above these commands are removed when the policy is opened in the Server UI and the Save button is clicked.
Kopia 0.17 that's installed in server mode on Ubuntu 23.04.
I'm trying to configure the Kopia via Ansible and Kopia cli and struggling with the 'policy set':
kopia policy set "user@host:/some/path" --before-snapshot-root-action "/path/to/script.sh script-param1 script-param2"
After running the above command and looking at the Kopia UI policy page for the 'user@host:/some/path' the 'Before Snapshot' field (both defined and effective) remains empty no matter what I've tried although the 'kopia policy show ' shows that the before action is correctly set:
On the other hand, if I set the same script but on the Server UI manually it is set correctly and visible in the UI and the snapshot runs successfully. But the
kopia policy show
shows it as an embedded script (not as Command as shown above) :IMO it's a bug.
The text was updated successfully, but these errors were encountered: