From 21f871b2f819f998b71dd6f52ea41015fec65922 Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Wed, 21 Sep 2022 22:10:07 +0200 Subject: [PATCH] actually recompress data --- bundles/backup/files/backup_path_via_zfs | 2 +- bundles/zfs-mirror/files/zfs-mirror | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/backup/files/backup_path_via_zfs b/bundles/backup/files/backup_path_via_zfs index aaf03b3..9c82198 100644 --- a/bundles/backup/files/backup_path_via_zfs +++ b/bundles/backup/files/backup_path_via_zfs @@ -39,7 +39,7 @@ else echo "INCREMENTAL BACKUP" last_bookmark=$(zfs list -t bookmark -H -o name | grep "^$source_dataset#$bookmark_prefix" | sort | tail -1 | cut -d '#' -f 2) [[ -z "$last_bookmark" ]] && echo "ERROR - last_bookmark is empty" && exit 98 - $(zfs send -v -L -c -i "#$last_bookmark" "$source_dataset@$new_bookmark" | $ssh sudo zfs recv "$target_dataset") + $(zfs send -v -L -i "#$last_bookmark" "$source_dataset@$new_bookmark" | $ssh sudo zfs recv "$target_dataset") fi if [[ "$?" == "0" ]] diff --git a/bundles/zfs-mirror/files/zfs-mirror b/bundles/zfs-mirror/files/zfs-mirror index 1ceb4cd..f44feb3 100644 --- a/bundles/zfs-mirror/files/zfs-mirror +++ b/bundles/zfs-mirror/files/zfs-mirror @@ -27,7 +27,7 @@ do echo "INCREMENTAL BACKUP" last_bookmark=$(zfs list -t bookmark -H -o name | grep "^$dataset#$bookmark_prefix" | sort | tail -1 | cut -d '#' -f 2) [[ -z "$last_bookmark" ]] && echo "ERROR - last_bookmark is empty" && exit 98 - $(zfs send -v -c -L -i "#$last_bookmark" "$dataset@$new_bookmark" | $ssh sudo zfs recv "$dataset" -o mountpoint=none) + $(zfs send -v -L -i "#$last_bookmark" "$dataset@$new_bookmark" | $ssh sudo zfs recv "$dataset" -o mountpoint=none) fi if [[ "$?" == "0" ]]