A command line client to Amazon Glacier based on AWS examples.
Create $HOME/AwsCredentials.properties
with your AWS keys
secretKey=…
accessKey=…
upload vault_name file1 file2 …
delete vault_name archiveId
download vault_name archiveId output_file
create-vault vault_name
delete-vault vault_name
inventory vault_name
info vault_name
list
-help Show help information
-output <file_name> File to save the inventory to. Defaults to 'glacier.json'
-properties <properties> Path to an AWSCredentials properties file. Defaults to '~/AwsCredentials.properties'
-queue <queue_name> SQS queue to use for inventory retrieval. Defaults to 'glacier'
-region <region> Specify URL as the web service URL to use. Defaults to 'us-east-1'
-topic <topic_name> SNS topic to use for inventory retrieval. Defaults to 'glacier'
java -jar glacier-1.0-jar-with-dependencies.jar upload pictures file1 file2
java -jar glacier-1.0-jar-with-dependencies.jar delete pictures xxx
java -jar glacier-1.0-jar-with-dependencies.jar download pictures xxx pic.tar
java -jar glacier-1.0-jar-with-dependencies.jar create-vault avault
java -jar glacier-1.0-jar-with-dependencies.jar -region eu-west-1 delete-vault mypreciousvault
java -jar glacier-1.0-jar-with-dependencies.jar inventory pictures
java -jar glacier-1.0-jar-with-dependencies.jar info pictures
java -jar glacier-1.0-jar-with-dependencies.jar list
mvn clean package
Uses Glacier high level API for uploading, downloading, deleting files, and the low-level one for retrieving vault inventory.
More info at the AWS Glacier development docs.
Copyright 2012 Carlos Sanchez
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.