mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-24 07:25:05 +00:00
Added debugging output.
This commit is contained in:
parent
eef8161462
commit
49ad7c4b52
18
backup.sh
18
backup.sh
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user