From 26b3fbf0063411672ddaf1e1b28f1adc872f81ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marc=20W=C3=A4ckerlin?= Date: Mon, 9 Oct 2017 11:25:19 +0200 Subject: [PATCH] docu updated --- README.md | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8575f2b..b0ba737 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,29 @@ Use BTRFS Snapshots For Backups =============================== -Try: btrfs-snapshots.sh --help +btrfs-snapshots.sh +------------------ -Setup daily btrfs snapshot of all mounted subvols in `/etc/fstab`: +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 you want hourly bakups, just enter: +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 +------------ - sudo cp btrfs-snapshots.sh /etc/cron.hourly/btrfs-snapshots +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`. \ No newline at end of file