diff --git a/backup.sh b/backup.sh index a5fd581..656e18d 100755 --- a/backup.sh +++ b/backup.sh @@ -51,12 +51,20 @@ populate_datasets() snapshot_dataset="yes" send_dataset="yes" for option in $dataset_options; do - debug "Processing option $option." case $option in - "nosnap"* ) snapshot_dataset="" ;; - "nosend"* ) send_dataset="" ;; - "remotezfs="*) remotezfs=`echo $option|cut -d'=' -f2` ; - dataset="$dataset:$remotezfs" ;; + "nosnap"* ) + snapshot_dataset="" + debug "Disabled snapshot of $dataset." + ;; + "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 done