diff --git a/backup.sh b/backup.sh index c3201e7..e764cee 100755 --- a/backup.sh +++ b/backup.sh @@ -44,8 +44,13 @@ read_datasets() { create_datasets() { # should compare_datasets and only create missing or possibly error. + for dataset in `cat ${datasets_file}`; do - zfs create -p ${BG_ROOT}/$dataset + if [ $BG_TEST_MODE = "TRUE" ]; then + echo zfs create -p ${BG_ROOT}/$dataset + else + zfs create -p ${BG_ROOT}/$dataset + fi done }