rsync is an open source utility that provides fast incremental file transfer.
# pacman -S rsync
As a cp alternative
rsync can readily be used as an advanced cp alternative, specifically useful for copying larger files:
$ rsync -P src dest
As a backup utility
The rsync protocol can easily be used for backups, only transferring files that have changed since the last backup. This tutorial describes how to configure scheduled backups using rsync, typically to some removable media.
First, create a script containing the appropriate command options:
- means files are archived
- means files are copied recursively
- means files deleted on the source are deleted on the backup
If backing-up to a remote host using SSH, use this script instead:
- tells rsync to use SSH
- is the user on the host Template:Codeline
Finally, the script must be executable:
# chmod +x /etc/cron.daily/rsync.backup