From d1c572c27784eb90f6ebe7a6f87f12c21fe16071 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 22 Jan 2024 15:17:56 -0300 Subject: backup.sh: Do not run check by default --- src/infrastructure/scripts/backup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3