Skip to main content

tigris objects restore

Restore an archived object (e.g. one in the GLACIER tier) into an actively readable copy for a number of days.

Alias: rs

Usage

tigris objects restore <bucket> [key] [flags]
t3 o rs <bucket> [key] [flags]

If the bucket argument contains the full path (e.g. t3://my-bucket/archived.bin), the key argument can be omitted.

Arguments

NameRequiredDescription
bucketYesBucket name, or a full path (t3://bucket/key)
keyNoObject key. Omit if bucket contains the full path.

Flags

NameRequiredDefaultDescription
--days, -dNo1How many days the restored copy stays available before reverting to its archived tier
--version-idNoRestore a specific object version (requires bucket versioning). Omit to restore the current version
--formatNotableOutput format. Options: json, table, xml

Examples

# Restore for the default 1 day
tigris objects restore my-bucket archived.bin

# Restore for 3 days
tigris objects restore my-bucket archived.bin --days 3

# Restore using a t3:// path
tigris objects restore t3://my-bucket/archived.bin --days 7

Use tigris objects restore-info to check the restore state of an object.