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

implement special tags, @PROT for protecting archives #8469

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

ThomasWaldmann
Copy link
Member

@ThomasWaldmann ThomasWaldmann commented Oct 9, 2024

Fixes #953. Fixes #8205. Fixes #4758.

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.86%. Comparing base (7288f4f) to head (3fb5d3f).
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8469      +/-   ##
==========================================
+ Coverage   81.77%   81.86%   +0.08%     
==========================================
  Files          72       72              
  Lines       12995    13027      +32     
  Branches     1919     1927       +8     
==========================================
+ Hits        10627    10664      +37     
+ Misses       1713     1711       -2     
+ Partials      655      652       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

special tags start with @ and have clobber protection,
so users can't accidentally remove them using borg tag --set.
it is possible though to still use --set, but one must also
give all special tags that the archive(s) already have.

there is only a known set of allowed special tags:
@prot - protects archives against archive pruning or archive deletion
setting unknown tags beginning with @ is disallowed.
@ThomasWaldmann ThomasWaldmann merged commit e376b7f into borgbackup:master Oct 10, 2024
16 checks passed
@ThomasWaldmann ThomasWaldmann deleted the special-tags branch October 10, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant