mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-21 23:05:06 +00:00
Reorganization.
This commit is contained in:
parent
f0084257be
commit
adc473c95f
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user