Prune operation in Borg 2 #7922
-
I'm new to the borgbackup project. I am basing my script off of the following resource: I was receiving errors during prune due to --prefix not being a valid option so it seems that, maybe, this is a relic of Borg 1. Looking at the help, it seems that maybe -a should be used for pattern matching but I'm not really certain about the syntax. My intention is to use it similar to --prefix because I want the prune command to only affect archives starting with a pattern (or containing the pattern since the archives are named "pattern-{now}". For example, would a borg2 prune operation only affect archives with the text 'pattern' in the name with the following option: Another random question. I cannot seem to get borg2 to run without adding a file. I have 2 datasets that I'm backing up and both of them exhibit this symptom with different files. If I remove the file in question, it just changes to a different (already in existence and unchanged) file. For example, running the backup twice in relatively quick succession (fwiw, the checksum of the file "/mnt/general/HEFC/Video Projects/2023-11-05/thumb.jpg" is unchanged throughout both of these runs):
It's not really causing a problem per se, but it seems inaccurate and is definitely triggering my ocd lol. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The latest beta is b7, but you are referring to a2 docs. b7 docs: https://borgbackup.readthedocs.io/en/2.0.0b7/quickstart.html They show correct usage with See the FAQ about adding that unchanged file: |
Beta Was this translation helpful? Give feedback.
-
Awesome, thank you. That worked perfectly and clarifies things. I just now saw the drop-down in the bottom right corner to select the different versions on that docs page. I wonder if that feature would be more intuitive/obvious if it were in the upper left corner of the page (like next to the logo/version). |
Beta Was this translation helpful? Give feedback.
The latest beta is b7, but you are referring to a2 docs.
b7 docs: https://borgbackup.readthedocs.io/en/2.0.0b7/quickstart.html
They show correct usage with
--match-archives
now.See the FAQ about adding that unchanged file:
https://borgbackup.readthedocs.io/en/2.0.0b7/faq.html#i-am-seeing-a-added-status-for-an-unchanged-file