why does npbackup-cli backup also run a --snapshots every time? #159
GuitarBilly
started this conversation in
General
Replies: 1 comment 1 reply
-
|
There are actually two things involved. Secondly, in order to check whether a repository is initialized, NPBackup does query the snasphot list, which when fails, has consistent error messages which can be parsed properly. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
as per title.
I am debugging a configuration on my headless server.
steps to reproduce:
I have created a simple configuration job. Then I launch it via:
npbackup-cli --debug --config-file npbackup.x300server.v3.conf --repo-name syncthing --backup
What i see happening is:
Why does
npbackup-cli --backupalso run a full snapshot listing every time? There is a separate--snapshotsentry for that, and npbackup-cli does not have a GUI to update to the user.expected behaviour:
npbackup-cli to execute only the command provided on the commandline, i.e. backup with --backup.
EDIT1
It is important to mention that I have run with --debug added. this seems to cause the snapshot listing.
When I omit the --debug, the --backup command seems to not list snapshots, at least in the output to the terminal.
EDIT2
Ok so it can be handy to list snapshots if you want to determine if it is already time to run the next backup...
Still some questions:
:: DEBUG :: Command "['/home/ubuntu/npbackup/npbackup-cli/npbackup/restic', '--json', 'snapshots']"?restic -r <repo> snapshots latest --host <yourhost> --jsonwould get the last backup already?Beta Was this translation helpful? Give feedback.
All reactions