mc ilm restore
Table of Contents
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.
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
The command has the following syntax:
mc [GLOBALFLAGS] ilm restore \
[--days "int" ] \
[--recursive] \
[--vid "string"] \
[--versions] \
ALIAS
Brackets []
indicate optional parameters.
Parameters sharing a line are mutually dependent.
Parameters seperated using the pipe |
operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Required The MinIO alias, bucket, and path to the archived object to restore.
mc ilm restore myminio/mybucket/object.txt
The path to a JSON
formatted configuration file that
mc uses for storing data. See Configuration File for
more information on how mc uses the configuration file.
Enables JSON lines formatted output to the console.
For example:
mc --JSON COMMAND
Disables TLS/SSL certificate verification. Allows TLS connectivity to servers with invalid certificates. Exercise caution when using this option against untrusted S3 hosts.
Displays the current version of mc
.
The following command restores an object archived to a remote tier:
mc ilm restore myminio/mybucket/object.txt
The following command restore a specific object version archived to a remote tier:
mc ilm restore --vid "VERSIONID" myminio/mybucket/object.txt
The following command restores all objects archived under a specified prefix on the remote tier:
mc ilm restore --recursive myminio/mybucket/data/
MinIO automatically expires the restored object copy after the specified number of days (Default: 1 day).
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.
The mc commandline tool is built for compatibility with the AWS S3 API and is tested MinIO and AWS S3 for expected functionality and behavior.
MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While mc commands may work as documented, any such usage is at your own risk.
This work is licensed under a Creative Commons Attribution 4.0 International License.
©2020-Present, MinIO, Inc.