mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-22 04:15:05 +00:00
Added test more for create_datasets.
This commit is contained in:
parent
6254180279
commit
f03bf1f547
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user