Skip to content

Instantly share code, notes, and snippets.

@abma
abma / backup
Last active July 9, 2018 22:52
Incremental backup to external drive using snapper and btrfs send/receive
#!/bin/bash
# James W. Barnett
# Takes snapshots of each snapper configuration. It then sends the snapshot to
# a location on an external drive. After the initial transfer, it does
# incremental snapshots on later calls. It's important not to delete the
# snapshot created on your system since that will be used to determine the
# difference for the next incremental snapshot.
# Can set the backup directory here, or in the snapper configuration file with