This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

rdiff-backup

From Gentoo Wiki (test)
Jump to:navigation Jump to: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

debug Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
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

See also

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

External resources