Skip to content

ardiereally/glacierman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glacierman

Utility for uploading/downloading/listing archives to AWS S3 Glacier


Requires

  • Java 11
  • An AWS account
  • A pre-created S3 Glacier Vault

Usage

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

Upload

java -jar glacierman.jar upload my-vault mydata.zip

Download

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>"
}

Inventory

java -jar glacierman.jar inventory my-vault

The inventory data will be downloaded & written to a local file

Build & packaging

Build using maven

mvn clean package

About

Upload archives to S3 Glacier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors