Disable auto-snapshot on target creation
This commit is contained in:
parent
5930637ded
commit
682b3f107e
@ -112,7 +112,7 @@ for name in "${syncvols[@]}"; do
|
|||||||
for part in $(echo $target/$(echo $name | cut -d'/' -f1) | sed "s/\// /g"); do
|
for part in $(echo $target/$(echo $name | cut -d'/' -f1) | sed "s/\// /g"); do
|
||||||
if [ $($zfs list $prefix$part > /dev/null 2>&1 ; echo $?) -gt 0 ]; then
|
if [ $($zfs list $prefix$part > /dev/null 2>&1 ; echo $?) -gt 0 ]; then
|
||||||
log "Creating $prefix$part"
|
log "Creating $prefix$part"
|
||||||
$zfs create -p $prefix$part
|
$zfs create -o com.sun:auto-snapshot=false -p $prefix$part
|
||||||
fi
|
fi
|
||||||
prefix="$prefix$part/"
|
prefix="$prefix$part/"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user