aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-06-26 15:06:18 -0300
committerEuAndreh <eu@euandre.org>2023-06-26 15:06:18 -0300
commit3c55005583aa53374743292f8fd40017c76b0071 (patch)
treeca0d1f63a94e375aeb44e99da1426979def1bcf1 /bin
parentbin/backup: Do not "borg check", as it takes too long (diff)
downloaddotfiles-3c55005583aa53374743292f8fd40017c76b0071.tar.gz
dotfiles-3c55005583aa53374743292f8fd40017c76b0071.tar.xz
bin/backup: Remove -x option
Diffstat (limited to 'bin')
-rwxr-xr-xbin/backup12
1 files changed, 3 insertions, 9 deletions
diff --git a/bin/backup b/bin/backup
index 690b5d0..ded7665 100755
--- a/bin/backup
+++ b/bin/backup
@@ -17,7 +17,6 @@ help() {
-q disable verbose mode, useful for
non-interactive sessions
-C COMMENT the comment text to be attached to the archive
- -x disable checking the repository after creating the backup
-h, --help show this message
ARCHIVE_TAG the tag used to create the new
@@ -45,10 +44,9 @@ help() {
$ backup
- Create backup with comment, and verbose mode active, and do not
- verify the repository afterwards:
+ Create backup with comment, and verbose mode active:
- $ backup -qxC 'The backup has a comment' my-backup
+ $ backup -qC 'The backup has a comment' my-backup
EOF
}
@@ -69,8 +67,7 @@ done
VERBOSE_FLAGS='--verbose --progress'
COMMENT=''
-CHECK=true
-while getopts 'qC:xh' flag; do
+while getopts 'qC:h' flag; do
case "$flag" in
q)
VERBOSE_FLAGS=''
@@ -78,9 +75,6 @@ while getopts 'qC:xh' flag; do
C)
COMMENT="$OPTARG"
;;
- x)
- CHECK=false
- ;;
h)
usage
help