rdiff-backup

From Gentoo Wiki
Jump to: navigation, search
Resources

rdiff-backup is a GPL-licensed incremental backup utility based on librsync; it stores changes to files instead of entire duplications. This can greatly reduce storage requirements for backups. The resultant incremental data can be viewed and restored from as if it were whole file backups via FUSE-based rdiff-backup-fs.

Installation

Unmasking

root #echo -e 'app-backup/rdiff-backup\nsys-fs/rdiff-backup-fs' | tee -a /etc/portage/package.accept_keywords{,/rdiff-backup} 2>/dev/null | tee -a /etc/portage/package.unmask{,/rdiff-backup} >/dev/null 2>&1

USE flags

Cannot load package information. Is the atom app-backup/rdiff-backup correct?

Emerge

root #emerge --ask --verbose --tree rdiff-backup rdiff-backup-fs

Usage

Backup

user $rdiff-backup path/to/source path/to/backup/destination

To backup again, simply run the exact same command; each increment will be individually accessible.

Restore

user $rdiff-backup-fs path/to/mount/point path/to/backup/destination
user $cp -p path/to/mount/point/YYYY-MM-DDTHH\:MM\:SS/some/thing where/ever/
user $fusermount -u path/to/mount/point

cron

user $crontab -e
CODE
0 3 * * * rdiff-backup /path/to/source /path/to/backup/destination

See also

  • Obnam — an easy to use, snapshot capable, FOSS backup utility that supports encryption and deduplication.

External resources