danix
's git repository
home
/
my projects
/
bash-notes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
working on the backup and backup restore functionalities.
[bash-notes.git]
/
SOURCE
/
main.sh
diff --git
a/SOURCE/main.sh
b/SOURCE/main.sh
index
94f696d
..
612200d
100644
(file)
--- a/
SOURCE/main.sh
+++ b/
SOURCE/main.sh
@@
-85,6
+85,19
@@
while true; do
# shellcheck disable=SC2317
exit
;;
+ --backup )
+ case "$2" in
+ '' )
+ read -r -p "Backup Dir: " BDIR
+ ;;
+ * )
+ BDIR=$2
+ ;;
+ esac
+ shift 2
+ backup_data $BDIR
+ exit
+ ;;
-- )
shift
break