Backup question,root as owner of backup file

rsync -azP -e 'ssh -p xxxxx' --delete user-data@xxx.xxx.xxx.xxx:/home/user-data/backup/encrypted /home/user/backupdir

I run this as a daily cron job from the server I want the backup stored on. I use a custom SSH port and the box’s IP address rather than the hostname. YMMV.

1 Like