Utility for uploading/downloading/listing archives to AWS S3 Glacier
- Java 11
- An AWS account
- A pre-created S3 Glacier Vault
A simple setup using the environment for passing credentials can be done with a file. Put your credentials in a file
called credentials.json
:
{
"accessKeyId": "<your access key id>",
"secretAccessKey": "<your secret access key>",
"region": "<the region where your vault is>"
}
Then run the jar file
java -jar glacierman.jar upload my-vault mydata.zip
java -jar glacierman.jar download my-vault download-request.json
The file download-request.json
must contain the details of a archive in the following format:
{
"archiveId": "<archive-id from glacier inventory>",
"localFileName": "mydata.zip",
"fileSize": "<file size from glacier inventory>"
}
java -jar glacierman.jar inventory my-vault
The inventory data will be downloaded & written to a local file
Build using maven
mvn clean package