aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-01-22 15:17:56 -0300
committerEuAndreh <eu@euandre.org>2024-01-22 15:17:56 -0300
commitd1c572c27784eb90f6ebe7a6f87f12c21fe16071 (patch)
tree2a684644636fc0d0cb4c1a4b82044c1b3b2b2abd
parentcronjob.sh: Increase timeout to 4 hours (diff)
downloadtoph-d1c572c27784eb90f6ebe7a6f87f12c21fe16071.tar.gz
toph-d1c572c27784eb90f6ebe7a6f87f12c21fe16071.tar.xz
backup.sh: Do not run check by default
Notes
See CI logs with: git notes --ref=refs/notes/ci-logs show d1c572c27784eb90f6ebe7a6f87f12c21fe16071 git notes --ref=refs/notes/ci-data show d1c572c27784eb90f6ebe7a6f87f12c21fe16071 Exit status: 0 Duration: 43
-rwxr-xr-xsrc/infrastructure/scripts/backup.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/infrastructure/scripts/backup.sh b/src/infrastructure/scripts/backup.sh
index 6a2a4ff..bea63b2 100755
--- a/src/infrastructure/scripts/backup.sh
+++ b/src/infrastructure/scripts/backup.sh
@@ -16,7 +16,7 @@ help() {
Options:
-q disable verbose mode, useful for batch sessions
-C COMMENT the comment text to be attached to the archive
- -x disable checking the repository after creating the backup
+ -x enable checking the repository after creating the backup
-h, --help show this message
ARCHIVE_TAG the tag used to create the new
@@ -52,7 +52,7 @@ help() {
$ backup -q cronjob
- Create backup with a comment, a tag, and verbose mode active, and do not
+ Create backup with a comment, a tag, and verbose mode active, and do
verify the repository afterwards:
$ backup -xC 'The backup has a comment'
@@ -77,7 +77,7 @@ done
VERBOSE_FLAGS='--verbose --progress'
COMMENT=' '
-CHECK=true
+CHECK=false
while getopts 'qC:xh' flag; do
case "$flag" in
q)
@@ -87,7 +87,7 @@ while getopts 'qC:xh' flag; do
COMMENT="$OPTARG"
;;
x)
- CHECK=false
+ CHECK=true
;;
h)
usage