Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

borg2: match on username, hostname, tags, ... #8423

Closed
ThomasWaldmann opened this issue Sep 26, 2024 · 0 comments · Fixed by #8429
Closed

borg2: match on username, hostname, tags, ... #8423

ThomasWaldmann opened this issue Sep 26, 2024 · 0 comments · Fixed by #8429
Assignees
Milestone

Comments

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Sep 26, 2024

matching of archives in borg has historically been focussed on the archive name, because everything was put into there in borg 1.x:

  • the timestamp was put into the name to make it unique
  • other stuff was put into the name, because there was no other place to put it (besides the comment) and also because borg list only showed name, timestamp, id.

borg2 now started to clean this up:

  • name does not need to be unique anymore, thus no need to put the timestamp into the name.
  • by having the same names for all archives in a series, some stuff got easier (finding previous archive, files cache separation, pruning, operating on all archives of a series)

but while implementing #8422 i noticed that we currently can still only use name matching for borg prune (either precise or wildcard match).

we can not yet match on the username or hostname, so users would still need to put these into the archive name if they want to treat different user's/hosts' stuff separately by prune.

to improve that, we need "and"-matching for:

  • archive name (exists)
  • user name
  • host name
  • tags

So we can then say something like:

borg prune name:home user:tw host:server --keep-daily 30
borg prune name:home user:gw host:server --keep-daily 30
@ThomasWaldmann ThomasWaldmann added this to the 2.0.0b12 milestone Sep 26, 2024
@ThomasWaldmann ThomasWaldmann self-assigned this Sep 26, 2024
@ThomasWaldmann ThomasWaldmann changed the title borg2: match on username, hostname, ... borg2: match on username, hostname, tags, ... Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant