1
0
mirror of https://github.com/minio/docs.git synced 2025-05-28 00:41:14 +03:00
docs/source/reference/minio-mc-admin/mc-admin-cluster-bucket-import.rst
Ravind Kumar a6d554acdc
DOCS-807, DOCS-846, Misc. Bug fixes (#861)
Closes #807 
Closes #846 


---------

Co-authored-by: Daryl White <53910321+djwfyi@users.noreply.github.com>
2023-05-23 17:29:48 -04:00

2.0 KiB

mc admin cluster bucket import

minio

mc admin cluster bucket import

Description

RELEASE.2022-06-17T02-52-50Z

The mc admin cluster bucket import command imports bucket metadata as created by the mc admin cluster bucket export command.

You can use this command to manually restore the metadata to the specified bucket on a MinIO deployment.

If you specify only the deployment as the target, this command applies the metadata objects to all matching buckets on the target.

EXAMPLE

The following command imports the specified metadata to the myminio deployment.

mc admin cluster bucket import myminio ~/minio-metadata-backup/myminio-cluster.zip

SYNTAX

The command has the following syntax:

mc [GLOBALFLAGS] admin cluster bucket import  \
                                    ALIAS[/BUCKET] \
                                    METADATA.ZIP  

Parameters

ALIAS

The alias <mc alias> of the MinIO deployment.

METADATA.ZIP

The path to the metadata file to import.

Use mc admin cluster bucket export to export bucket metadata for use with this command.

BUCKET

The bucket to apply the imported metadata to.

Global Flags