Thread View: gwene.org.apache.planet
1 messages
1 total messages
Started by Carlos Sanchez
Mon, 27 Aug 2012 12:13
Cheap backups with Amazon Glacier
Author: Carlos Sanchez
Date: Mon, 27 Aug 2012 12:13
Date: Mon, 27 Aug 2012 12:13
41 lines
4387 bytes
4387 bytes
<div xmlns="http://www.w3.org/1999/xhtml"><p><img alt="" class="alignleft wp-image-1256" height="88" src="http://carlossanchez.files.wordpress.com/2012/08/amazon.png?w$0&h" title="amazon aws" width="240"/>Last week Amazon announced <a href="http://aws.amazon.com/glacier">Amazon Glacier</a>, where you can have files stored at <a href="http://aws.amazon.com/glacier/pricing/">$0.01 per GB / month</a>, quite a good deal, considering that S3 goes for <a href="http://aws.amazon.com/s3/pricing/">$0.093 GB/month</a> with reduced redundancy, or Dropbox at its best is 0.825/GB committing to 100GB for a full year, although obviously they fill very different use cases.</p> <p>To get that pricing there are some drawbacks that make it only useful for storing files that donât need to be retrieved often, ie. backups for disaster recovery. Downloading or listing files in Glacier take more than 4 hours, so that gives you an idea. Behind the scenes it uses Amazon SQS (Simple Queue Service) and SNS (Simple Notification Service) to handle the download and inventory requests, so you can do extra things like getting emails when your requests are ready.</p> <p>I have created <a href="http://github.com/carlossg/glacier-cli">glacier-cli</a> using the Java API to upload, download, delete and list files stored in Glacier from the command line, as Amazon only provides the APIs for now and some examples. Make sure you save the output when uploading the files, as you will need the ids of the files later on when you need to download them.</p> <p>Get the code from <a href="https://github.com/carlossg/glacier-cli">GitHub</a>.</p> <h1>Glacier-CLI</h1> <h2>Building</h2> <p><code>mvn clean package</code></p> <h2>Configuration</h2> <p>Create <code>$HOME/AwsCredentials.properties</code> with your AWS keys</p> <pre><code>secretKey=⦠accessKey=⦠</code></pre> <h2><a href="https://github.com/carlossg/glacier-cli#commands" name="commands"/>Commands</h2> <ul> <li><code>upload vault_name file1 file2 â¦</code></li> <li><code>download vault_name archiveId output_file</code></li> <li><code>delete vault_name archiveId</code></li> <li><code>inventory vault_name</code></li> </ul> <h2><a href="https://github.com/carlossg/glacier-cli#command-line-options" name="command-line-options"/>Command line options</h2> <pre><code> -output <file_name> File to save the inventory to. Defaults to 'glacier.json' -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' </code></pre> <h2><a href="https://github.com/carlossg/glacier-cli#examples" name="examples"/>Examples</h2> <p>Upload file1 and file2 to vault <code>pictures</code></p> <p><code>java -jar glacier-1.0-jar-with-dependencies.jar upload pictures file1 file2</code></p> <p>Download archive with id xxx from vault <code>pictures</code> to file <code>pic.tar</code> (takes >4 hours)</p> <p><code>java -jar glacier-1.0-jar-with-dependencies.jar download pictures xxx pic.tar</code></p> <p>Delete archive with id xxx from vault <code>pictures</code></p> <p><code>java -jar glacier-1.0-jar-with-dependencies.jar delete pictures xxx</code></p> <p>Get the inventory for vault <code>pictures</code> (takes >4 hours)</p> <p><code>java -jar glacier-1.0-jar-with-dependencies.jar inventory pictures</code></p> <p>Upload file1 and file2 to vault <code>pictures</code> in Europe region</p> <p><code>java -jar glacier-1.0-jar-with-dependencies.jar -region eu-west-1 upload pictures file1 file2</code></p> <h2><a href="https://github.com/carlossg/glacier-cli#building" name="building"/></h2> <h2><a href="https://github.com/carlossg/glacier-cli#more-info" name="more-info"/></h2> <br/> <a href="http://feeds.wordpress.com/1.0/gocomments/carlossanchez.wordpress.com/1248/" rel="nofollow"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carlossanchez.wordpress.com/1248/"/></a> <img alt="" border="0" height="1" src="http://stats.wordpress.com/b.gif?host=blog.carlossanchez.eu&blog55600&post48&subdÊrlossanchez&ref=&feed=1" width="1"/></div> <p><a href="http://blog.carlossanchez.eu/2012/08/27/cheap-backups-with-amazon-glacier/">Link</a>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads