mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-21 22:35:05 +00:00
Fixed ordering of operations.
This commit is contained in:
parent
b5013414cb
commit
923fca5795
18
backup.sh
18
backup.sh
@ -33,6 +33,16 @@ MIRROR_PERMS="compression,receive,create,mount,mountpoint,readonly,jailed"
|
||||
|
||||
SEND_DATASETS=""
|
||||
SNAPSHOT_DATASETS=""
|
||||
|
||||
debug()
|
||||
{
|
||||
if [ $BG_DEBUG_MODE = "TRUE" ]; do
|
||||
echo $@
|
||||
fi
|
||||
}
|
||||
|
||||
populate_datasets()
|
||||
{
|
||||
while read dataset dataset_options; do
|
||||
case $dataset in
|
||||
\#*) continue;;
|
||||
@ -57,12 +67,6 @@ while read dataset dataset_options; do
|
||||
SNAPSHOT_DATASETS="$SNAPSHOT_DATASETS $dataset"
|
||||
fi
|
||||
done < datasets.txt
|
||||
|
||||
debug()
|
||||
{
|
||||
if [ $BG_DEBUG_MODE = "TRUE" ]; do
|
||||
echo $@
|
||||
fi
|
||||
}
|
||||
|
||||
list_datasets()
|
||||
@ -258,6 +262,8 @@ done
|
||||
|
||||
tail -n +2 $nodes_file|grep -v '^#' > sendnodes.tmp
|
||||
|
||||
populate_datasets
|
||||
|
||||
### Command
|
||||
case "$1" in
|
||||
list) list_datasets ;;
|
||||
|
Loading…
Reference in New Issue
Block a user