brain fuck
This commit is contained in:
parent
f6dc204b86
commit
928c310fcb
12
btrbk
12
btrbk
|
@ -148,9 +148,9 @@ function echoHelp {
|
|||
echo "options:"
|
||||
echo " -b, --backup runs backup manually if not already run today"
|
||||
echo " -f, --force force backup to override today's backup"
|
||||
echo " -d, --date=YYYY-MM-DD define a date from which to restore when using -r"
|
||||
echo " -r, --restore=VOLNAME restores the latest snapshot of a given subvolume"
|
||||
echo " -x, --full-restore=PATH this walks you through an complete config restore"
|
||||
echo " --date=YYYY-MM-DD define a date from which to restore when using -r"
|
||||
echo " --restore=VOLNAME restores the latest snapshot of a given subvolume"
|
||||
echo " --full-restore=PATH this walks you through an complete config restore"
|
||||
echo " and will restore the whole system to a given directory"
|
||||
echo " -h, --help display this help and exit"
|
||||
exit 1
|
||||
|
@ -163,9 +163,9 @@ while true; do
|
|||
case $1 in
|
||||
-b|--backup) backup=true; shift;;
|
||||
-f|--force) force=true; shift;;
|
||||
-d|--date) rDate="$2"; shift;;
|
||||
-r|--restore) restore=true; restoreVol=$2; shift;;
|
||||
-x|--full-restore) fullRestore=true; restoreDir=$2; shift;;
|
||||
--date) rDate="$2"; shift;;
|
||||
--restore) restore=true; restoreVol=$2; shift;;
|
||||
--full-restore) fullRestore=true; restoreDir=$2; shift;;
|
||||
-h|--help) Help; shift; break;;
|
||||
--) shift; break;;
|
||||
\?) echo "error"; exit 1;;
|
||||
|
|
Loading…
Reference in a new issue