From adc473c95f59d2943da39db1653154804075e673 Mon Sep 17 00:00:00 2001 From: Otho Date: Sat, 19 Nov 2022 03:37:36 -0500 Subject: [PATCH] Reorganization. --- backup.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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}