add restore operation option

This commit is contained in:
Asif Bacchus 2020-03-26 02:25:51 -06:00
parent 65bfe96b68
commit 5836cbd7e7
1 changed files with 4 additions and 0 deletions

View File

@ -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