Skip to content

docs: add multi-repository backup and restore proposal - #1917

Merged
shizhMSFT merged 3 commits into
oras-project:mainfrom
shizhMSFT:multi_repo
Dec 19, 2025
Merged

shizhMSFT merged 3 commits into
oras-project:mainfrom
shizhMSFT:multi_repo

Conversation

@shizhMSFT

Copy link
Copy Markdown
Contributor

Summary

Adds a comprehensive proposal for extending oras backup and oras restore commands to support multi-repository operations within a single registry. This enhancement builds upon existing single-repository functionality while maintaining full backward compatibility.

Changes

  • New file: docs/proposals/backup-restore-multi.md (881 lines)
    • Multi-repository backup syntax and behavior specification
    • Multi-repository restore with flexible mapping capabilities
    • Detailed examples for common enterprise scenarios
    • Implementation plan and user experience considerations

Key Features Proposed

  • Backup artifacts from multiple repositories in the same registry into a single OCI layout
  • Restore with repository mapping and restructuring capabilities
  • Support for selective tag backup per repository
  • Blob deduplication across repositories
  • Dry-run mode for validation before restore operations
  • Progressive disclosure: simple cases remain simple, complexity only when needed

Out of Scope

  • Backing up entire registries (all repositories)
  • Cross-registry backup in a single operation

Related Issues

This proposal addresses enterprise scenarios including unified backups for microservices, repository migration between environments, and disaster recovery for specific repository sets.

This adds comprehensive documentation for multi-repository backup and restore
functionality, including full reference annotations and clear examples.

Signed-off-by: Shiwei Zhang <[email protected]>
@codecov

codecov Bot commented Nov 30, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.33%. Comparing base (e12fb79) to head (de6cd11).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1917   +/-   ##
=======================================
  Coverage   87.33%   87.33%           
=======================================
  Files         143      143           
  Lines        5535     5535           
=======================================
  Hits         4834     4834           
  Misses        415      415           
  Partials      286      286           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread docs/proposals/backup-restore-multi.md Resolved
Comment thread docs/proposals/backup-restore-multi.md Resolved
Comment thread docs/proposals/backup-restore-multi.md Resolved

@AustinAbro321 AustinAbro321 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This proposal would solve what I'm looking for in #1893. Thanks

Comment thread docs/proposals/backup-restore-multi.md Resolved

@Wwwsylvia Wwwsylvia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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 this pull request may close these issues.

7 participants