wip
This commit is contained in:
parent
31e497fc3d
commit
428f5a568b
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ zfs snap $source_dataset@$new_bookmark
|
||||||
if zfs list -t bookmark -H -o name | grep '#auto-backup' | wc -l | grep -q "^0$"
|
if zfs list -t bookmark -H -o name | grep '#auto-backup' | wc -l | grep -q "^0$"
|
||||||
then
|
then
|
||||||
echo "INITIAL BACKUP"
|
echo "INITIAL BACKUP"
|
||||||
zfs send -v "$source_dataset@$new_bookmark" | $ssh sudo zfs recv $target_dataset
|
zfs send -v "$source_dataset@$new_bookmark" | $ssh sudo zfs recv -F $target_dataset
|
||||||
else
|
else
|
||||||
echo "INCREMENTAL BACKUP"
|
echo "INCREMENTAL BACKUP"
|
||||||
last_bookmark=$(zfs list -t bookmark -H -o name | sort | tail -1 | cut -d '#' -f 2)
|
last_bookmark=$(zfs list -t bookmark -H -o name | sort | tail -1 | cut -d '#' -f 2)
|
||||||
|
|
Loading…
Reference in a new issue