mirror of
https://git.bashclub.org/bashclub/zsync.git
synced 2024-11-22 10:55:18 +01:00
Fix deletion
This commit is contained in:
parent
c08ac04879
commit
02e330de61
@ -132,8 +132,8 @@ for name in "${syncvols[@]}"; do
|
||||
done
|
||||
|
||||
# cleanup old snapshots
|
||||
filter=$(echo -e $snapshot_filter | sed "s/|/ /g")
|
||||
IFS=$' '
|
||||
filter=$(echo -e $snapshot_filter | sed "s/|/\n/g")
|
||||
IFS=$'\n'
|
||||
for interval in $filter ; do
|
||||
guid=$($ssh $sshport $source "zfs list -H -o guid,name -S creation -t snapshot $name | grep $interval | cut -f1 | tail -1")
|
||||
if [[ "$(echo -e "$guid" | sed 's/\n//g')" != "" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user