Hi all,
Just wondered if someone with more linux experience than myself could give me a little help.
I’m backing up all my Virtualmin domains nightly with a scheduled back, and i want to rsync them to another server after that has completed. I know i need to setup rsa keys so that ssh can login without a password but i’m kind of confused over which user gets the key.
Here is the command that works manually.
rsync -ave ssh /root/backups/ backupuser@my.remote.host:/home/backupuser/backups/
As Virtualmins backups are owned by root, i need to run rsync as root in order to read the files, but i want to access the remote machine as “backupuser”… I’ve tried creating keys for root, but this doesnt seem to work, do i need to create the backupuser account locally, even if i’m rsync’ing as root.
I’m sure this should be simple, once you know how
Cheers, Chris