Btrbk

btrbk is a tool for creating snapshots and remote backups of btrfs subvolumes.

Configuration
An example configuration file is found in. Refer to the man page for a detailed explanation.

With the example configuration above, btrbk will only create snapshots if the data has changed and keeps them locally for 2 days (up to 24 hourly and 2 daily snapshots). Hourly backups will be deleted after 24 hours, daily backups after 6 days, weekly backups after 6 weeks, monthly backups after 6 months and yearly backups after 1 year.

The example assumes that the btrfs subvolume containing @root and @home is mounted at. This is usually the btrfs root subvolume, which always has.

Create the directory for the snapshots and test the configuration:

Backups
To create backups we need to add a :

If you want to backup to a remote computer via SSH, you have to generate a key and add it to.