borgthismachine.sh: add .nobackup support

This commit is contained in:
layman 2022-03-27 13:18:15 +02:00
parent ad71cde364
commit a87157013d

View file

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