From a87157013ddb91663720ea18dd0b6b8324a18f45 Mon Sep 17 00:00:00 2001 From: layman Date: Sun, 27 Mar 2022 13:18:15 +0200 Subject: [PATCH] borgthismachine.sh: add .nobackup support --- borgthismachine.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/borgthismachine.sh b/borgthismachine.sh index eef2e5f..5c3bcb2 100755 --- a/borgthismachine.sh +++ b/borgthismachine.sh @@ -69,6 +69,7 @@ nice ionice -c 3 borg create --stats \ $([[ -n "${BORG_EXCLUDE_PATTERN[*]}" ]] && printf " --exclude \"%s\" " "${BORG_EXCLUDE_PATTERN[@]}" ) \ $([[ -n "$BORG_EXCLUDE_FILE" ]] && printf " --exclude-from \"%s\" " "${BORG_EXCLUDE_FILE}" ) \ --exclude-if-present="$BORG_EXCLUDE_IF_PRESENT" \ + --exclude-if-present=".nobackup" \ "${MYREPO}::${SNAPSHOT}" \ "${BORG_BACKUP_DIRS[@]}"