From 0793aa0d9b5c512a2df800692b9c94091aa436e2 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 26 Jun 2021 00:42:06 +0200 Subject: [PATCH] wip --- bundles/backup/files/backup_path | 2 +- bundles/backup/files/backup_path_via_zfs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/bundles/backup/files/backup_path b/bundles/backup/files/backup_path index 7510f3c..8c518be 100644 --- a/bundles/backup/files/backup_path +++ b/bundles/backup/files/backup_path @@ -7,7 +7,7 @@ then /opt/backuo/backup_path_via_zfs "$path" elif test -d "$path" then - /opt/backuo/backup_path_via_zfs "$path" + /opt/backuo/backup_path_via_rsync "$path" else echo "UNKNOWN PATH: $path" exit 1 diff --git a/bundles/backup/files/backup_path_via_zfs b/bundles/backup/files/backup_path_via_zfs index 3ef01e8..6d8062c 100644 --- a/bundles/backup/files/backup_path_via_zfs +++ b/bundles/backup/files/backup_path_via_zfs @@ -14,12 +14,6 @@ new_bookmark="auto-backup_$(date +"%Y-%m-%d_%H:%M:%S")" echo "BACKUP ZFS DATASET - PATH: $path, SERVER: $server, UUID: $uuid, SOURCE_DATASET: $source_dataset, TARGET_DATASET: $TARGET_DATASET" -# if ! $SSH zfs list -t filesystem -H -o name | grep -q "^$TARGET_DATASET$" -# then -# echo "CREATING TARGET DATASET..." -# $ssh sudo zfs create -p -o mountpoint=none "$target_dataset" -# fi - zfs snap $source_dataset@$new_bookmark if zfs list -t bookmark -H -o name | grep '#auto-backup' | wc -l | grep -q "^0$"