Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.
This repository was archived by the owner on Jul 14, 2026. It is now read-only.

mc minio copy path from src #5266

Description

@kaktusit

Hi, I have problem with "mc mirror" buckets beetween two minio buckets.
I am trying copy all data from one minio intantance to another with save the same paths.
All path from old minio bucket is create to destination. Please see below scenerio:

$ mc tree --files src-minio/backups/
src-minio/backups/
├─ backup_20251201.tar.gz
├─ backup_20251202.tar.gz
├─ backup_20251203.tar.gz
├─ backup_20251204.tar.gz
├─ backup_20251205.tar.gz

dst-minio/backups is empty

mc mirror src-minio/backups/ dst-minio/backups
$ mcli tree --files dst-minio/backups/
dst-minio/backups/
└─ src-minio
└─ backups
├─ backup_20251201.tar.gz
├─ backup_20251202.tar.gz
├─ backup_20251203.tar.gz
├─ backup_20251204.tar.gz
├─ backup_20251205.tar.gz

How to execute mirror without adding old path (alias/bucket) to files

$ mc --version
mcli version RELEASE.2025-08-29T21-30-41Z (commit-id=f7560841be167a94b7014bf8a504e0820843247f)
Runtime: go1.24.6 linux/amd64
Copyright (c) 2015-2025 MinIO, Inc.
MinIO Enterprise License

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions