Skip to content

Commit

Permalink
docs(s3): doc review 1
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyOubouaziz committed Apr 3, 2024
1 parent c8284bf commit 9bd4884
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions storage/object/how-to/restore-an-object-from-glacier.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ categories:

## How to restore all objects in a bucket

If you have numerous files in a bucket that you would like to restore, we recommen using the command line interface with for example with a dedicated tool such as the [AWS CLI](/storage/object/api-cli/object-storage-aws-cli/).
If you have numerous files in a bucket that you would like to restore, we recommend using the command line interface, with a dedicated tool such as the [AWS CLI](/storage/object/api-cli/object-storage-aws-cli/).

1. Run the command below in a terminal to create a list of objects to restore and store it as a text file. Make sure to replace `<YOUR-BUCKET>` by the name of your bucket.
1. Run the command below in a terminal to create a list of objects to restore, and store it as a text file. Make sure to replace `<YOUR-BUCKET>` with the name of your bucket.

```sh
aws s3api list-objects-v2 --bucket <YOUR-BUCKET> --query "Contents[?StorageClass=='GLACIER']" --output text | awk '{print $2}' > glacier-restore.txt
Expand All @@ -68,7 +68,7 @@ If you have numerous files in a bucket that you would like to restore, we recomm
The `list-objects-v2` operation is [limited to 1,000 objects](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-objects-v2.html#description).
</Message>

2. Run the following command to restore every object listed at the previous step. Make sure to replace `<YOUR-BUCKET>` by the name of your bucket, and `NUM` by the desired number of days.
2. Run the following command to restore every object listed at the previous step. Make sure to replace `<YOUR-BUCKET>` with the name of your bucket, and `NUM` by the desired number of days.

```sh
for x in `cat glacier-restore.txt`
Expand All @@ -82,7 +82,7 @@ If you have numerous files in a bucket that you would like to restore, we recomm

## Restore time

The time it takes to restore an object depends on the size of the object and on if [multipart](/storage/object/concepts/#multipart-uploads) is configured. If your object is larger than 1 MB, it can take anywhere from a few minutes to 24 hours for restore to start.
The time it takes to restore an object depends on the size of the object and if [multipart](/storage/object/concepts/#multipart-uploads) is configured. If your object is larger than 1 MB, it can take anywhere from a few minutes to 24 hours for restore to start.

For multipart objects, each part is equivalent to one object. Consequently, the more parts your object has, the longer the restore time will be.

Expand Down

0 comments on commit 9bd4884

Please sign in to comment.