A common strategy for maintaining a backup copy of a system involves keeping one or more directories synchronized with another directory (or directories) located on either the local system (usually a removable storage device of some kind) or a remote system. We might, for example, have a local copy of a website under development and synchronize it from time to time with the “live” copy on a remote web server.
In the Unix-like world, the preferred tool for this task is
rsync. This program can synchronize both local and remote directories by using the rsync remote-update protocol, which allows
rsync to quickly detect the differences between two directories and perform ...