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

USE flags for app-backup/rdiff-backup Local/remote mirroring+incremental backup

examples Install examples, usually source code

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

External resources