1
0
mirror of https://github.com/minio/docs.git synced 2025-07-30 07:03:26 +03:00
Files
docs/source/reference/minio-mc/mc-ilm-restore.rst
Daryl White 947b16155a Updates docs of mc release RELEASE.2023-04-12T02-21-51Z (#850)
- Adds info to `mc ilm restore` about using `mc stat`
- Adds additional flag to `mc admin replicate update` syntax
- Adds metadata tags flags to `mc find`, plus examples

Closes #815
2023-05-12 11:36:19 -05:00

4.4 KiB

mc ilm restore

minio

Table of Contents

mc ilm restore

Syntax

The mc ilm restore command creates a temporary copy of an object archived on a remote tier. The copy automatically expires after 1 day by default.

Use this command to allow applications to access a tiered object through the MinIO deployment (e.g. "hot tier"). The archived object remains on the remote tier, while the temporary copy becomes HEAD for that object.

mc RELEASE.2023-04-12T02-21-51Z

Use mc stat to display whether a restored object reads from the local temporary copy or the remote tier. Restored objects read from the local copy show a status of Ongoing : true.

EXAMPLE

The following command restores a copy of a transitioned object from the remote tier back to the myminio MinIO deployment:

mc ilm restore myminio/mybucket/object.txt

SYNTAX

The command has the following syntax:

mc [GLOBALFLAGS] ilm restore      \
                 [--days "int" ]  \
                 [--recursive]    \
                 [--vid "string"] \
                 [--versions]     \
                 [--encrypt-key]  \
                 ALIAS

Parameters

ALIAS

The MinIO alias <alias>, bucket, and path to the archived object to restore.

mc ilm restore myminio/mybucket/object.txt
--days

The number of days after which MinIO expires the restored copy of the archived object.

--recursive, r

Restores all objects under the specified prefix.

--versions

Restores all versions of the object on the remote tier.

--version-id, vid

Restores the specified version of the object on the remote tier.

--encrypt-key

RELEASE.2023-01-28T20-29-38Z

Encrypt or decrypt objects using server-side encryption with client-specified keys. Specify key-value pairs as KEY=VALUE.

  • Each KEY represents a bucket or object.
  • Each VALUE represents the data key to use for encrypting object(s).

Enclose the entire list of key-value pairs passed to ~mc ilm restore --encrypt-key in double quotes ".

Global Flags

Examples

Restore an Archived Object

The following command restores an object archived to a remote tier:

mc ilm restore myminio/mybucket/object.txt

Restore a Specific Archived Object Version

The following command restore a specific object version archived to a remote tier:

mc ilm restore --vid "VERSIONID" myminio/mybucket/object.txt

Restore All Archived Objects at a Bucket Prefix

The following command restores all objects archived under a specified prefix on the remote tier:

mc ilm restore --recursive myminio/mybucket/data/

Behavior

Restored Objects Expire Automatically

MinIO automatically expires the restored object copy after the specified number of days (Default: 1 day).

Restored Objects Become HEAD

The restored object copy becomes HEAD for that object namespace regardless of it's versioning history. This can result in applications returning "stale" data while the local copy exists.

S3 Compatibility