borg create: add --hostname/--username/--tags#9464
Merged
ThomasWaldmann merged 2 commits intoborgbackup:masterfrom Mar 11, 2026
Merged
borg create: add --hostname/--username/--tags#9464ThomasWaldmann merged 2 commits intoborgbackup:masterfrom
ThomasWaldmann merged 2 commits intoborgbackup:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9464 +/- ##
==========================================
+ Coverage 83.30% 83.36% +0.05%
==========================================
Files 87 87
Lines 15423 15441 +18
Branches 2310 2313 +3
==========================================
+ Hits 12848 12872 +24
+ Misses 1822 1819 -3
+ Partials 753 750 -3 ☔ View full report in Codecov by Sentry. |
- Added `--hostname` and `--username` command-line options to `borg create` - Updated Archive to capture and store these explicit values, falling back to system defaults - Added `test_explicit_hostname_and_username` to verify the functionality
2b3de53 to
b07431d
Compare
- add `--tags TAG [TAG ...]` option to `borg create` to tag newly created archives. - validate the tags exactly like `borg tag` does, including checking that any special tags starting with `@` are known `SPECIAL_TAGS`. - add `test_create_tags` and `test_create_invalid_tags` to ensure proper behavior.
b07431d to
5f4e921
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--hostnameand--usernamecommand-line options toborg createtest_explicit_hostname_and_usernameto verify the functionality