From b2069ce598d72ffc367a7296b436027e78926018 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Thu, 4 Mar 2021 14:21:35 +0100 Subject: [PATCH] Separate snapshot creation from snapshot sync --- zfs_backup_dataset.sh | 2 +- zsc-sync.sh | 130 ++++++++++++++++++++++++++++++++++++++++++ zsc.sh | 40 ++++++++----- 3 files changed, 158 insertions(+), 14 deletions(-) create mode 100755 zsc-sync.sh diff --git a/zfs_backup_dataset.sh b/zfs_backup_dataset.sh index aee921d..6b3a27c 100755 --- a/zfs_backup_dataset.sh +++ b/zfs_backup_dataset.sh @@ -53,7 +53,7 @@ for local_snapshot in "${LOCAL_SNAPSHOTS[@]}"; do done if [ $found = true ] ; then - echo "> Found remotely, settings as last snapshot" + echo "> Found remotely, setting as last snapshot" LAST_SNAPSHOT=$local_snapshot EXISTING_SNAPSHOT="" else diff --git a/zsc-sync.sh b/zsc-sync.sh new file mode 100755 index 0000000..fa1e245 --- /dev/null +++ b/zsc-sync.sh @@ -0,0 +1,130 @@ +#!/bin/bash + +# ZSC-Sync - zfs snapshot cron sync +# Usage: