I’m looking for a simple setup which will take daily snapshots of
/home and then send those snapshots to a second drive, keeping exactly a month’s worth. I already have an online backup solution; this would primarily be for convenience in the event of drive failure or quickly grabbing a file I deleted by mistake.
Most of the things I’ve looked at have what seems like extra complexity for my use case.
I started with btrbk, because that’s packaged in Fedora, but it has instructions which start like with In this example, we assume you have a laptop with a disk having a btrfs root subvolume (subvolid=5) mounted on
/mnt/btr_pool…. and that doesn’t seem like the setup we have in Fedora Workstation by default. And it seems really geared for backup to remote systems, which is great and all but not what I need.
Maybe this can all be done with a simple shell script run nightly from cron? I looked at the
btrfs subvolume snapshot,
btrfs send and
btrfs receive commands, which seem to be the basic building blocks for what I want, but they’re really short on examples. Is there a place I can find good ones?