The rsync Utility
When
developing backup scripts, consider using the rsync utility. The rsync utility
allows you to copy from the local system to a remote system or copy between two
local directories. If the files exist in the destination directory, rsync only
transfers the differences in the files, which is ideal for backups. The rsync
RPM package is required and should already be installed on your system.
After
the rsync command-line arguments are listed, the first directory listed is the
source, and the second directory listed is the destination. If either directory
is preceded by a hostname and a colon (:), the directory is a remote directory.
For example, to transfer all home directories to the backup/ directory on the
remote server backup.example.com: