Upload to Glacier via CLI

0

What is best way to upload an entire folder (recursively) to S3 Glacier via CLI? I understand we can create a Glacier Vault and run 'aws glacier' command on individual objects (w/ no recursive option) such as:

aws glacier upload-archive --vault-name MyVault --body myArchive.doc

However I notice that the 's3 sync' command has '--storage-class' options of 'GLACIER|DEEP_ARCHIVE.' Would following command work as well?:

aws s3 sync my-dir s3://my-bucket/path --storage-class DEEP_ARCHIVE

1回答
0
承認された回答

It is recommended to use S3's Glacier storage class so you can use s3 sync.

Note that data stored in Glacier vaults is not interchangeable with Glacier-storage-class data in S3 buckets. You have to choose which set of APIs to use.

In general, S3's APIs have a richer feature set; we are encouraging use of the S3 APIs for all new Glacier data.

AWS
回答済み 4年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ