Always error and exit when the borgmatic runtime directory overlaps with the configured excludes (#1122). #1144
No reviewers
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
borgmatic-collective/borgmatic!1144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "check-runtime-directory-excludes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implementation of #1122. To prevent the user from inadvertently excluding the
bootstrapaction's manifest from a backup archive—thereby preventing thebootstrapaction from working—this PR now always errors and exits when the borgmatic runtime directory overlaps with the configured excludes. Previously, this check was only performed when database streaming was in use. Now, the check is performed all the time.In terms of implementation, this check runs a
borg create --dry-runto get the list of individual file paths that Borg plans to backup and compares that list against the borgmatic runtime directory to see if it has been excluded.Considerations
In practice, this is a performance hit, because the dry-run isn't free. However, this is apparently the cost of protecting the user from accidentally breaking bootstrapping or other (current or future) features that rely on the borgmatic runtime directory getting backed up.
Still to do
store_config_files: falseand the runtime directory never gets added topatternsto begin withWIP: Always error and exit when the borgmatic runtime directory overlaps with the configured excludes (#1122).to Always error and exit when the borgmatic runtime directory overlaps with the configured excludes (#1122).Always error and exit when the borgmatic runtime directory overlaps with the configured excludes (#1122).to WIP: Always error and exit when the borgmatic runtime directory overlaps with the configured excludes (#1122).WIP: Always error and exit when the borgmatic runtime directory overlaps with the configured excludes (#1122).to Always error and exit when the borgmatic runtime directory overlaps with the configured excludes (#1122).