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[@]}"