I would like to run an rsync job which connects to one server and backs everything up to another. These backups should be incremental and we don't want to delete any files.
backups files from /local/folder to remote host. Most probably you want to setup public key authentication, otherwise you have to enter your password each time.
You can put commands to crontab with command crontab -e. Something like
azvr meaning archive, compress, verbose and go recursively into directories, plus this gives the option of running on a different port (which I had a hard time finding an answer to), plus it saves files on the backup that you later delete on the original
You may want to look at backuppc which will do rsync backups. It can be configured for incremental and full backups. After the first backup, transfers are incremental. There is a good web-based interface for querying status, backups, and doing recoveries.
Check out rdiff-backup and duplicity. Both are for exactly what you want, duplicity also adds encryption layer.
You can do this also with rsync alone, but then you are not saving old versions at all.
backups files from
/local/folder
to remote host. Most probably you want to setup public key authentication, otherwise you have to enter your password each time.You can put commands to crontab with command
crontab -e
. Something likeset something like this to run on a cron job and it'll make incremental backups with rsync via SSH:
azvr meaning archive, compress, verbose and go recursively into directories, plus this gives the option of running on a different port (which I had a hard time finding an answer to), plus it saves files on the backup that you later delete on the original
You may want to look at backuppc which will do rsync backups. It can be configured for incremental and full backups. After the first backup, transfers are incremental. There is a good web-based interface for querying status, backups, and doing recoveries.
rsync have many powerfull options. check this link
Example:
Don'f forget to create SSH keys.