rdiff-backup
From Gentoo Wiki
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
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
0 3 * * * rdiff-backup /path/to/source /path/to/backup/destination