Copy & run-before #125
Unanswered
ryszard-suchocki
asked this question in
Q&A
Replies: 2 comments 4 replies
-
I don't see any issue adding |
Beta Was this translation helpful? Give feedback.
4 replies
-
As a workaround for your current profiles (until dedicated
This will not fail the backup but write "copy myprofile failed" to the output |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to copy my repo to SMB/CIFS share. This requires mount / unmount network shared (I prefer not leaving mounted network share for everyone who uses pc/server). Is it possible or will it be possible in the future to use run-before, run-after actions in the "copy" command? I don't want to invoke mount/unmount pre/post actions with every command invoked (snapshots, stats) ("global" run-before). Most of my profiles invoke copy as backup's "run-after" action (run-after: {{configdir}}/resticprofile -c myprofile -n myprofile copy), I can then mount before and unmount after. But this way has some downsides such as an overall backup failure when the mount failed (normally only copy should fail) and I receive a "copy" notification before the "backup" notification (when everything is all right). Also, I don't want to inherit the profile as it doubles backup invoke (when scheduled - derivedprofile:backup[inherited schedule], derivedprofile:copy[new schedule] ).
My imagination is:
copy:
repo: myrepo
password: myrepokey
run-before: mount -t cifs -o "options for mount" /mount/point
run-after: umount /mount/point
Best regards!
Beta Was this translation helpful? Give feedback.
All reactions