From 5836cbd7e73502c18e9843e63fa5665f3e51ac7b Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 26 Mar 2020 02:25:51 -0600 Subject: [PATCH] add restore operation option --- borghelper.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/borghelper.sh b/borghelper.sh index fd47a0e..eb86a4b 100644 --- a/borghelper.sh +++ b/borghelper.sh @@ -76,6 +76,10 @@ while [ $# -gt 0 ]; do restorePath="${2%/}" shift ;; + -r|--restore) + # restore archive/file + operation='restore' + ;; -v|--vars) # location of borgvars file if [ -z "$2" ]; then