- I'm trying to make a rootfs backup from
ServerAon toServerB. - The connection is one way and is initialized from
ServerBusingrsnapshot. - I have made a
backupaccount onServerAand enabled paswordless sudo only forrsync
What I'm trying to accomplish:
- Change the
authorized_keysfile onServerA, so only thersynccommand can be used via ssh.
On ServerB - /etc/rsnapshot.conf is setup to run rsync with the following args:
rsync_long_args --rsync-path="sudo rsync" --delete --numeric-ids --relative --delete-excluded
I have tried the following on ServerA:
from="ServerB",command="sudo rsync *" ssh-ed25519 SSH-KEY
But rsnapshot keeps crashing and giving IO error codes for rsync.
What am I missing here?