/glacier-cli

Amazon AWS Glacier command line interface for Linux, Mac and Windows

Primary LanguageJavaMIT LicenseMIT

Glacier CLI Build Status

A command line client to Amazon Glacier, an extremely low-cost storage service that provides secure and durable storage for data archiving and backup.

Getting Started

Download a release, extract the files and add the bin directory to your PATH. If you want to build the project yourself you can run mvn clean package. Requires Java 6 or later.

Configuration

Provide your AWS credentials by setting AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables or by passing a properties file with the -credentials option.

secretKey=…
accessKey=…

Usage

Upload file1.zip and file2.zip to vault pictures

glacier-upload pictures file1.zip file2.zip

Download archive with id xxx from vault pictures to file pic.tar (takes >4 hours)

glacier-download pictures xxx pic.tar

Delete archive with id xxx from vault pictures

glacier-delete pictures xxx

Get the inventory for vault pictures (takes >4 hours)

glacier-inventory pictures

Upload file1.zip and file2.zip to vault pictures in European region

glacier-upload -region eu-west-1 pictures file1 file2

List vaults in European region

glacier-vaults -region eu-west-1

Command line options

-region      <region>  Defaults to 'us-east-1'
-credentials <file>    Defaults to '$HOME/AwsCredentials.properties'

Thanks to

Cameron Hunter for his fork and adaptation of Carlos Sanchez's glacier-cli project.