Reorganization.

This commit is contained in:
Otho 2022-11-19 03:37:36 -05:00
parent f0084257be
commit adc473c95f
Signed by: Otho
GPG Key ID: 16C720CD3BBE21D9

View File

@ -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
# <root zfs>
### datasets.txt
### datasets.txt (Only required for aggregator setup.)
# <dataset 1>
# <dataset 1>/<dataset 1a>
# <dataset 1>/<dataset 1b>
@ -24,11 +22,12 @@ BAKRNG_ROOT=`cat rootzfs.txt`
# <dataset 3>
# ...
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}