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
I'd like to run a "check --read-data-subset=2.5%" after every successful backup, but I don't know how to do it.
I am doing this from a laptop, and have a systemd file that takes care of launching npbackup every 15 minutes. So what I'd like to do is run the check --read-data-subset 2.5% after the backup (and housekeeping) finish.
The standard housekeeping does not seem to accept the "read-data-subset" argument.
runs the backup and exits (with success) without running the check.
Using the post-execution commands with
restic --check --read-data-subset 2.5%
fails with the error
WARNING :: Post-execution of command restic check --read-data-subset=2.5% failed with:
using temporary cache in /tmp/restic-check-cache-2628526043
create exclusive lock for repository
Fatal: repository does not exist: unable to open config file: stat xxxxx:_[o_O]_hidden_by_npbackup/config: no such file or directory
Is there a repository at the following location?
xxxxxx:_[o_O]_hidden_by_npbackup
I guess I could build more complex logic into the systemd file, like only run the check --read-data-subset 2.5% if the output from the --backup run does not include the string "No backup necessary". But I think this might be overcomplicating things, and I maybe missing something much simpler in the config. (I've seen #123 where the read-data-subset is used, but I don't see how to apply it here).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to run a "check --read-data-subset=2.5%" after every successful backup, but I don't know how to do it.
I am doing this from a laptop, and have a systemd file that takes care of launching
npbackupevery 15 minutes. So what I'd like to do is run thecheck --read-data-subset 2.5%after the backup (and housekeeping) finish.The standard housekeeping does not seem to accept the "read-data-subset" argument.
Of course, I can run
but that executes the check unconditionally, and that is not what I want.
Concatenating
--backupand--raw, likeruns the backup and exits (with success) without running the check.
Using the post-execution commands with
fails with the error
I guess I could build more complex logic into the systemd file, like only run the
check --read-data-subset 2.5%if the output from the--backuprun does not include the string "No backup necessary". But I think this might be overcomplicating things, and I maybe missing something much simpler in the config. (I've seen #123 where theread-data-subsetis used, but I don't see how to apply it here).Beta Was this translation helpful? Give feedback.
All reactions