aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-03-25 18:22:10 -0300
committerEuAndreh <eu@euandre.org>2022-03-25 18:22:10 -0300
commita6ecb0e69e9aa308faccbda508ad4b748ea97557 (patch)
tree4eb5a387d75250cf6bca442a8721534853e6dd35
parentsrc/bin/backup: Indent documentation heredocs (diff)
downloaddotfiles-a6ecb0e69e9aa308faccbda508ad4b748ea97557.tar.gz
dotfiles-a6ecb0e69e9aa308faccbda508ad4b748ea97557.tar.xz
src/bin/backup: Include "-v" verbose flag
-rwxr-xr-xsrc/bin/backup7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/backup b/src/bin/backup
index 934062f9..65f94b57 100755
--- a/src/bin/backup
+++ b/src/bin/backup
@@ -35,13 +35,17 @@ for flag in "$@"; do
esac
done
-while getopts 'h' flag; do
+VERBOSE_FLAG=''
+while getopts 'hv' flag; do
case "$flag" in
h)
usage
help
exit
;;
+ v)
+ VERBOSE_FLAG='-v'
+ ;;
*)
usage >&2
exit 2
@@ -69,6 +73,7 @@ borg init -e repokey-blake2 suyin:borg/usurpador ||:
borg key export suyin:borg/usurpador ~/archive/usurpador-borg-key.txt
borg create \
+ $VERBOSE_FLAG \
--exclude ~/.cache \
--stats \
--compression lzma,9 \