fridge-backup is a helper for creating and managing incremental backups with BTRFS snapshots. It implements the scheme described on Fedora Magazine.
Snapshots are created for the current day (systemd units are in contrib/) and are then copied to remote BTRFS drives as specified by the user. No encryption is added in, it's expected you'll encrypt the entire drive.
There's also no explicit restore support - just copy over the files you want to restore using your favorite file copying program.
$ sudo fridge-backup snapshot
Takes a snapshot of /home
and places it at /snapshots/home-YYYY-MM-DD
.
$ sudo fridge-backup copy /my/external/drive/
Copies the latest snapshot to your external drive. It will look to see if a
previous snapshot exists on the external drive that can be used to create
an incremental snapshot.
$ sudo fridge-backup status
Lists available snapshots.
You can also run fridge-backup help
and fridge-backup help [subcommand]
for more details on options.
Currently paths of /snapshots/
and /home/
are hardcoded, this will become
configurable in the future.
At this time removal of old snapshots is a manual process. This too will be implemented in the future.
fridge-backup is a statically compiled Rust program and should work on recent
Linux distros without issue. You will need to have the btrfs
command-line
utility installed.
fridge-backup is (C) 2021 Kunal Mehta, under the GPL v3 or any later version.