add restore operation option

This commit is contained in:
Asif Bacchus 2020-03-26 02:25:51 -06:00
parent 65bfe96b68
commit 5836cbd7e7

View File

@ -76,6 +76,10 @@ while [ $# -gt 0 ]; do
restorePath="${2%/}" restorePath="${2%/}"
shift shift
;; ;;
-r|--restore)
# restore archive/file
operation='restore'
;;
-v|--vars) -v|--vars)
# location of borgvars file # location of borgvars file
if [ -z "$2" ]; then if [ -z "$2" ]; then