diff options
author | EuAndreh <eu@euandre.org> | 2024-01-22 15:17:56 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-01-22 15:17:56 -0300 |
commit | d1c572c27784eb90f6ebe7a6f87f12c21fe16071 (patch) | |
tree | 2a684644636fc0d0cb4c1a4b82044c1b3b2b2abd | |
parent | cronjob.sh: Increase timeout to 4 hours (diff) | |
download | toph-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-x | src/infrastructure/scripts/backup.sh | 8 |
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 |