From 49ad7c4b5212074d68eeba3fe74dd0696d4d8e61 Mon Sep 17 00:00:00 2001 From: Otho Date: Mon, 16 Jan 2023 19:48:28 -0500 Subject: [PATCH] Added debugging output. --- backup.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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