Skip to content

feat(backup): accept multiple repositories in one backup #2422

Backlog

Description

@TerryHowe

What

Let oras backup take more than one repository reference and write them all to one OCI layout (directory or tar), as described in the multi-repository backup proposal (#1917, docs/proposals/backup-restore-multi.md, updated by #2358):

oras backup --output bases.tar \
  docker.io/library/alpine:3.18.0,3.19.0 \
  docker.io/library/busybox

Today oras backup accepts exactly one <registry>/<repository>[:<tags>] argument.

Already done

Scope

  • Accept one or more references. Each one is parsed as today: no tags means all tags.
  • Merge repeated repositories into one tag list.
  • Back up every repository into the same OCI store, so shared blobs are stored once, then export one tar.
  • Show a summary across repositories in the output, as in the proposal.
  • Unit tests for parsing and merging. An e2e round trip: back up two repositories, check shared blobs are stored once, restore with and without --include.

Multiple registries

Backing up from several registries in one archive depends on #2358 being agreed and on #2380 (removing the global registry flags). Until then, references from different registries should be rejected with a clear error.

Supersedes the remaining scope of #730.

Activity

  1. added
    enhancement
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions