btrbk

    Backup tool for btrfs subvolumes source

    /etc/btrbk/btrbk.conf

    snapshot_preserve_min       7d
    snapshot_preserve          14d 4w *m
    
    volume /home
      snapshot_dir               btrbk_snapshots
      subvolume sync
    

    Notes:

    • preserve all subvolume during at least 7 days. Presere at least one snapshot 14 days old, one snapshot with 1 month old and a snapshot per month forever.
    • snapshots the subvolume /home/sync in the directory /home/btrbk_snapshots