borg, rdiff-backup and attic scripts
borg, rdiff-backup and attic scripts
This page contains the three generations of backup scripts I have used for my laptop. My reasoning for sharing these is that they were annoying to develop and completely automate the backup process. While customizing one of these scripts to your needs might take a while, it is significantly easier than redeveloping the scripts from scratch.
The first, most recent script uses a deduplicating archiver called Borg, which is like Attic. It is extremely fast, deduplicates data, and support perpetual incremental backups and allows deletion of individual backups, as it doesn’t depend on a backup chain. The second script uses Rsnapshot and Rdiff-backup. Rsnapshot only deduplicates at the file level, but allows deletion of backups in the middle of a chain. Rdiff-backup uses chains, but duplicates at the block level, which is a must for virtual machines. The last script uses Attic, and is only here for archival purposes. All script are fully automatic and run on a schedule, only bugging you if something goes wrong.
Also, there’s a bunch of resources on borg’s github