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

AWS
demandé il y a 4 ans1118 vues
1 réponse
0
Réponse acceptée

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
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions