Skip to content

Instantly share code, notes, and snippets.

@jeffholst
Last active April 24, 2019 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffholst/87f7480dcdcd652c50caf277a3e0d6e7 to your computer and use it in GitHub Desktop.
Save jeffholst/87f7480dcdcd652c50caf277a3e0d6e7 to your computer and use it in GitHub Desktop.
Used for Amazon Glacier file retrieval
{
"Type": "archive-retrieval",
"ArchiveId": "[archiveid]"
}
@jeffholst
Copy link
Author

jeffholst commented Apr 24, 2019

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment