baksnapper icon indicating copy to clipboard operation
baksnapper copied to clipboard

PSA for those interested in backing up snapshots from a remote host

Open einalex opened this issue 4 years ago • 1 comments

You can accomplish this by setting --type pull and defining the PATH as baksnapper@host-to-backup:/path/where/backups/should/live/on/this/machine this is highly counter-intuitive as the path is not on the defined host. the resulting command look something like this: /usr/bin/baksnapper --config home --private-key /root/.ssh/baksnapper --type pull [email protected]:/backups

if you create a baksnapper user and define baksnapper ALL= NOPASSWD: /usr/bin/baksnapperd (adjust the path to wherever you put it) in your sudoers file on the host you want to back up, it will have all the permissions it needs to function. if you also set command="sudo baksnapperd $SSH_ORIGINAL_COMMAND" instead of command="baksnapperd $SSH_ORIGINAL_COMMAND" in that users authorized_keys file

einalex avatar Jul 21 '21 10:07 einalex

Thanks for the write up!

Yeah, not my greatest UI design. The pull feature is more of an after thought and it made a bit more sense when I had it split back in v0.3 i.e baksnapper --ssh host --type pull path.

Note sure what the best way would be to improve this though.

plattfot avatar Jul 21 '21 16:07 plattfot

Closing this as the new interface where you explicitly specify the source and destination solves the counterintuitive interface when using --config

plattfot avatar Oct 01 '25 03:10 plattfot