Skip to content

Conversation

@JMoVS
Copy link

@JMoVS JMoVS commented Dec 20, 2025

Hi,

referring back to #4751 (reply in thread) I could use some help. I've been unable to create a local testing setup successfully unfortunately so would like to hear if this PR works or what the issues are. Specifically I've been unable to get the master container to run my custom built borg container - could you have a testrun of this or help me set this up better?

Replace hardcoded .noaiobackup path checks with borg's native
--exclude-if-present option, allowing users to exclude any directory
from backup by placing a .noaiobackup marker file in it.

Changes:
- Backup: Use --exclude-if-present=.noaiobackup --keep-exclude-tags
- Restore: Dynamically detect .noaiobackup markers from backup archive
  (not local filesystem) and build exclude patterns accordingly
- Keep RESTORE_EXCLUDE_PREVIEWS as standalone feature
- Update section title to be more general
- Explain that .noaiobackup can be placed in any directory
- Document that marker files are kept in backup for restore detection
- Clarify restore behavior with excluded directories
@JMoVS JMoVS marked this pull request as draft December 20, 2025 13:05
@szaimen
Copy link
Collaborator

szaimen commented Jan 5, 2026

@szaimen szaimen added 2. developing Work in progress enhancement New feature or request borg labels Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress borg enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants