Backup snapshots with rsync
Backing up data is something that most sysadmins need to do regularly. We may need to backup data in a web server or from remote locations.
rsync is a command that can be used to synchronize files and directories from one location to another while minimizing data transfer using file difference calculations and compression. The advantage of
rsync over the
cp command is that
rsync uses strong difference algorithms. Also, it supports data transfer across networks. While making copies, it compares the files in the original and destination locations and will only copy the files that are newer. It also supports compression, encryption, and a lot more. Let's see how we can work with
How to do it...
In order to copy a ...