Rdiff-backup


is a backup software written in Python that creates reverse incremental backups. The most recent backup is thus directly accessible, while earlier backups will be reconstructed from diff files by rdiff-backup.
As the name implies, rdiff-backup uses the rdiff method to compute the differences between file versions. rdiff-backup is able to back up files across different machines via ssh.

Usage

Backup

Normal operation is rdiff-backup . gzip compression of increment files can be disabled with --no-compression. The options -v 5 --print-statistics show the backup's progress and some statistics.
Specifying --no-fsync will disable fsync, causing a significant speedup, with an elevated risk of data loss.

Restoration of files or directories

rdiff-backup --restore-as-of will restore to the entire backup, a single file or a sub-directory. can be specified in one of several ways:
It is also possible to find the relevant time-stamped file in the rdiff-backup-data/increments directory, and run rdiff-backup folder to be restored>.
Simpler, the most recent backup can also be restored by copying a back-upped file or directory with cp -a or rsync -a. A deleted file – recognizable by the suffix snapshot.gz – can also be restored by retrieving it in the rdiff-backup-data/increments directory, copying it to the source directory, and unpacking with gzip.

Deleting old backups

Only the oldest backups can be removed, with rdiff-backup --remove-older-than . The ability to delete the oldest versions of specific files is scheduled to appear in version 2.2.
When deleting old versions, takes the same arguments as when restoring files or directories.

Problems

As of version 2.0.0, rdiff-backup does not work with exFAT file systems, though FAT and NTFS are both supported.
rdiff-backup recognizes changed files only by file size as well as modification time. To make sure all changed files have been back-upped, running rdiff-backup --compare-hash will display all changed files. Then, using touch, the modification time of all problematic files can be reset to now, and thus, they will be included during the next rdiff-backup run.

Web links