Repository navigation
feat(backup): accept multiple repositories in one backup - #2428
Open
Orion777-cmd wants to merge 1 commit into
Open
Orion777-cmd wants to merge 1 commit into
Orion777-cmd wants to merge 1 commit into
Conversation
Accept one or more repository references and back them all up into one OCI layout, so blobs shared between repositories are stored once and one tar archive is exported. References to the same repository are merged into one tag list, where no tags means every tag. The tags of every repository are resolved before anything is backed up. With several repositories, the output lists the tags by repository and reports full references. Backing up a single repository is unchanged. References to more than one registry are rejected until the global registry flags are removed. Fixes oras-project#2422 Signed-off-by: orion777-cmd <[email protected]>
Orion777-cmd
requested review from
TerryHowe,
Wwwsylvia,
sabre1041,
sajayantony and
shizhMSFT
as code owners
November 29, 2026 08:35
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2428 +/- ##
==========================================
+ Coverage 90.58% 90.71% +0.13%
==========================================
Files 163 163
Lines 8272 8349 +77
==========================================
+ Hits 7493 7574 +81
+ Misses 454 452 -2
+ Partials 325 323 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
What this PR does / why we need it:
oras backupnow accepts one or more<registry>/<repository>[:<tags>]references and backs them all up into one OCI layout, as described in #2358. Blobs shared between repositories are stored once, and one tar archive is exported.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #2422
Please check the following list: