Orphaned objects check skipped (needs all archives checked). #734
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#734
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
What I'm trying to do and why
Hi, when using borgmatic and the
--only archives
the "Orphaned object check" gets skipped, because of the--glob-archives *
option in the borg command. Is this intended? Where does the*
come from and i it is*
why even parse the option?Following are the what i think important parts of the config file that might lead to this (tell me if you need more):
Steps to reproduce
No response
Actual behavior
No response
Expected behavior
No response
Other notes / implementation ideas
No response
borgmatic version
1.8.0
borgmatic installation method
yay -S borg borgmatic
Borg version
borg 1.2.4
Python version
Python 3.11.3
Database version (if applicable)
No response
Operating system and version
EndeavourOS Linux x86_64 6.4.7-zen1-1-zen
The
--glob-archives *
flag passed to Borg is almost certainly coming from thearchive_name_format: '{now}'
option. Specifically, borgmatic is likely interpreting the{now}
as an "ephemeral data placeholder" and replacing it with a*
when constructing the Borg command and selecting the archives to check. You can read more about this feature here, including the rationale for it: https://torsion.org/borgmatic/docs/how-to/make-per-application-backups/#archive-filteringSo do you have any suggestions for a solution here? For instance, maybe borgmatic could be made smart enough to omit
--glob-archives
when the value would be*
? That would solve your particular use case now, but it wouldn't necessarily solve it ifarchive_name_format
changed.Thanks!
For borgmatic it would be the best option to omit if if its '*' i guess.
but i see the problem almost more with borg than with borgmatic so maybe i should open an issue there?
Sounds good. And yeah, if that's unexpected/undesired behavior in Borg, opening an issue at least to ask about it may not be a bad idea. Feel free to link it here if you do.
https://github.com/borgbackup/borg/issues/7752
This is implemented in main and will be part of the next release! Thanks for filing this.
Just released in borgmatic 1.8.1!