diff --git a/btrbk b/btrbk index 0deb71e..c6affe9 100755 --- a/btrbk +++ b/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;;