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$"