diff --git a/backup.sh b/backup.sh index 9c05593..0cb78ce 100755 --- a/backup.sh +++ b/backup.sh @@ -1,7 +1,5 @@ #!/usr/bin/env sh -BAKRNG_ROOT=`cat rootzfs.txt` - ## Data Format ### user.txt @@ -15,7 +13,7 @@ BAKRNG_ROOT=`cat rootzfs.txt` ### rootzfs.txt # -### datasets.txt +### datasets.txt (Only required for aggregator setup.) # # / # / @@ -24,11 +22,12 @@ BAKRNG_ROOT=`cat rootzfs.txt` # # ... - if [ ! -f user.txt ]; then echo "No user specified."; exit 2; fi if [ ! -f hosts.txt ]; then echo "No hosts specified."; exit 2; fi if [ ! -f rootzfs.txt ]; then echo "No rootzfs specified."; exit 2; fi +BAKRNG_ROOT=`cat rootzfs.txt` + list_filesets() { zfs list | tail -n +2 | cut -d' ' -f1|grep ${BAKRNG_ROOT}