Last active
April 24, 2019 14:06
-
-
Save jeffholst/87f7480dcdcd652c50caf277a3e0d6e7 to your computer and use it in GitHub Desktop.
Used for Amazon Glacier file retrieval
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Type": "archive-retrieval", | |
"ArchiveId": "[archiveid]" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Be sure to replace [archiveid] which can be found by doing an inventory retrieval.
Usage
aws glacier initiate-job --vault-name [vaultname] --account-id [accountid] --job-parameters file://file-retrieval.txt
Check status of job:
aws glacier list-jobs --account-id [accountid] --vault-name [vaultname]
Retrieve file with:
aws glacier get-job-output --account-id [accountid] --vault-name [vaultname] --job-id [jobId] [filename]
Be sure to replace [accountid], [vaultname], [jobId] and [filename]