mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-21 19:55:05 +00:00
Added documentation.
This commit is contained in:
parent
64e49bcf4d
commit
f0084257be
23
backup.sh
23
backup.sh
@ -2,6 +2,29 @@
|
||||
|
||||
BAKRNG_ROOT=`cat rootzfs.txt`
|
||||
|
||||
## Data Format
|
||||
|
||||
### user.txt
|
||||
# <username>
|
||||
|
||||
### hosts.txt
|
||||
# <host 1 address> <host 1 port> <host 1 root zfs>
|
||||
# <host 2 address> <host 2 port> <host 2 root zfs>
|
||||
# ...
|
||||
|
||||
### rootzfs.txt
|
||||
# <root zfs>
|
||||
|
||||
### datasets.txt
|
||||
# <dataset 1>
|
||||
# <dataset 1>/<dataset 1a>
|
||||
# <dataset 1>/<dataset 1b>
|
||||
# <dataset 2>
|
||||
# <dataset 2>/<dataset 2a>
|
||||
# <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
|
||||
|
Loading…
Reference in New Issue
Block a user