From f0084257be6f639a0a1af0c0738f8ee2d545364d Mon Sep 17 00:00:00 2001 From: Otho Date: Sat, 19 Nov 2022 03:36:40 -0500 Subject: [PATCH] Added documentation. --- backup.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/backup.sh b/backup.sh index cfc0188..9c05593 100755 --- a/backup.sh +++ b/backup.sh @@ -2,6 +2,29 @@ BAKRNG_ROOT=`cat rootzfs.txt` +## Data Format + +### user.txt +# + +### hosts.txt +# +# +# ... + +### rootzfs.txt +# + +### datasets.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