Hey,
I have two servers. They each have backup scrips run daily via a cronjob. I'd like to have each server store the others backup (Eg, ServerA stores ServerB's backup, and ServerB stores ServerA's backup). I'm not sure on how to get started, as I've never used rsync or even ran any type of automated file-transfer.
I was considering doing something such as the following: creating a new unprivileged user account with no password, only accessible via a public key. The current backup files will be stored in that users homedir.Use a cronjob to schedule rsync to run every day after the backup script on each server. The cronjob will sync the backup folder on ServerA with a folder on ServerB, and vise-versa.
I've never used rsync before, so I'll have to read up on how exactly that works. However, are there any common practices to "sharing" backups like this? Is SCP or SFTP preferred over rsync?
I have two servers. They each have backup scrips run daily via a cronjob. I'd like to have each server store the others backup (Eg, ServerA stores ServerB's backup, and ServerB stores ServerA's backup). I'm not sure on how to get started, as I've never used rsync or even ran any type of automated file-transfer.
I was considering doing something such as the following: creating a new unprivileged user account with no password, only accessible via a public key. The current backup files will be stored in that users homedir.Use a cronjob to schedule rsync to run every day after the backup script on each server. The cronjob will sync the backup folder on ServerA with a folder on ServerB, and vise-versa.
I've never used rsync before, so I'll have to read up on how exactly that works. However, are there any common practices to "sharing" backups like this? Is SCP or SFTP preferred over rsync?