2017-10-30 09:23:07 +01:00
2017-10-30 09:23:07 +01:00
2017-10-27 10:21:56 +02:00
2017-10-06 13:39:02 +00:00
2017-10-09 11:25:19 +02:00

Use BTRFS Snapshots For Backups

btrfs-snapshots.sh

Creates a snapshot for all btrfs volumes specified. Snapshot is named from the subvol name or if there is no subvol, from the path by appending -snapshot-YYYY-MM-DD-HH-mm.

To create regular snapshots on a daily base, just run:

sudo cp btrfs-snapshots.sh /etc/cron.daily/btrfs-snapshots

If btrfs-snapshots is run from a cron.daily, cron.hourly, cron. monthly or cron.weekly directory, the periodity is automatically appended to the snapshot name, and the expiry is set meaningfull.

Try: btrfs-snapshots.sh --help

Installation

Just call ./install.sh to install all cron jobs. Then there will always be the last 24 hourly backups, the last 7 daily backups, tha last 4 weekly backups and all monthly backups of all your btrfs filesystems mounted in /etc/fstab.

Description
Collection of scripts used for data backup and snapshots, i.e. for btrfs and lizardfs.
Readme 42 KiB
Languages
Shell 100%