wip
This commit is contained in:
parent
5e73a7634f
commit
0793aa0d9b
2 changed files with 1 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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$"
|
||||
|
|
Loading…
Reference in a new issue