rdiff-backup

From Gentoo Wiki
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

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

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

The cp command can simply be used to copy a file from a backup created with rdiff-backup.

See rdiff website for more examples.

cron

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

External resources