Using Rsync in Linux
Rsync is a utility used very often for backups. It has a large array of options, including incremental backups, file compression, etc. to save your bandwidth usage and make file transfers faster. If you want to transfer files without typing a password, be sure to make a SSH certificate
Usage
You can use the following command to run on your system:
$ rsync -avz -e ssh /var/www/ USERNAME@USERNAME.backupbus.com:backup1Remember to replace USERNAME with your username.
The above command will copy everything under the /var/www directory, and place it in the backup1 directory in your BackupBus space.
Other Options
- To delete any files in the destination directory that are not in the source directory, add the --delete switch
- To exclude files from the backup, add the --exclude="iso/*" switch
- You can view the rsync man page for the full documentation here
Suggestions
- Make it so you don't have to type a password with a SSH certificate
- Automate your rsync backups with a cron job