diff --git a/bundles/backup/files/backup_path_via_zfs b/bundles/backup/files/backup_path_via_zfs index 9f540cc..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 -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 079ae08..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 -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" ]]