mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-24 08:05:06 +00:00
Updated debug messages.
This commit is contained in:
parent
49ad7c4b52
commit
643495d805
@ -54,25 +54,24 @@ populate_datasets()
|
|||||||
case $option in
|
case $option in
|
||||||
"nosnap"* )
|
"nosnap"* )
|
||||||
snapshot_dataset=""
|
snapshot_dataset=""
|
||||||
debug "Disabled snapshot of $dataset."
|
|
||||||
;;
|
;;
|
||||||
"nosend"* )
|
"nosend"* )
|
||||||
send_dataset=""
|
send_dataset=""
|
||||||
debug "Disabled send of $dataset."
|
|
||||||
;;
|
;;
|
||||||
"remotezfs="*)
|
"remotezfs="*)
|
||||||
remotezfs=`echo $option|cut -d'=' -f2`
|
remotezfs=`echo $option|cut -d'=' -f2`
|
||||||
dataset="$dataset:$remotezfs"
|
dataset="$dataset:$remotezfs"
|
||||||
debug "Set remote dataset for $dataset."
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $send_dataset ]; then
|
if [ $send_dataset ]; then
|
||||||
SEND_DATASETS="$SEND_DATASETS $dataset"
|
SEND_DATASETS="$SEND_DATASETS $dataset"
|
||||||
|
debug "Added $dataset for sending."
|
||||||
fi
|
fi
|
||||||
if [ $snapshot_dataset ]; then
|
if [ $snapshot_dataset ]; then
|
||||||
SNAPSHOT_DATASETS="$SNAPSHOT_DATASETS $dataset"
|
SNAPSHOT_DATASETS="$SNAPSHOT_DATASETS $dataset"
|
||||||
|
debug "Added $dataset for snapshot."
|
||||||
fi
|
fi
|
||||||
done < datasets.txt
|
done < datasets.txt
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user