Added debugging output.

This commit is contained in:
Otho 2023-01-16 19:48:28 -05:00
parent eef8161462
commit 49ad7c4b52
Signed by: Otho
GPG Key ID: 16C720CD3BBE21D9

View File

@ -51,12 +51,20 @@ populate_datasets()
snapshot_dataset="yes" snapshot_dataset="yes"
send_dataset="yes" send_dataset="yes"
for option in $dataset_options; do for option in $dataset_options; do
debug "Processing option $option."
case $option in case $option in
"nosnap"* ) snapshot_dataset="" ;; "nosnap"* )
"nosend"* ) send_dataset="" ;; snapshot_dataset=""
"remotezfs="*) remotezfs=`echo $option|cut -d'=' -f2` ; debug "Disabled snapshot of $dataset."
dataset="$dataset:$remotezfs" ;; ;;
"nosend"* )
send_dataset=""
debug "Disabled send of $dataset."
;;
"remotezfs="*)
remotezfs=`echo $option|cut -d'=' -f2`
dataset="$dataset:$remotezfs"
debug "Set remote dataset for $dataset."
;;
esac esac
done done