One of their services, Glacier, is for very long-term storage of data that doesn't need to be accessed frequently (such as backups). Seriously, they mean infrequently - just running the command to get a directory of your files appears to have a turnaround time of a few hours.
Unfortunately, the only interface for accessing the service requires using a programming language - there is no standard tool or web interface.
Fortunately, they supply several APIs - I am using the Java version. They supply fragments of source code, though it is scattered throughout their slightly opaque documentation.
I have gathered together all of the relevant bits and made it into a reasonable command line application. Since I was doing this in Linux, all of these instructions are for this system, though it should adapt to any platform.
To get it to work, you will need to:
- Have an AWS account
- Have a working Java compiler
- Create a working folder ('aws')
- Download the AWS Java SDK
- Extract it to 'aws/sdk' - you should get an 'aws/sdk/lib' directory, among others
- Download my Glacier app code
- Extract it to the working folder ('aws')
- You will need to edit two lines in 'aws/src/glacier.java'
- Replace the text "**UNIQUE ID HERE**" with unique strings
- Run the "build.sh" script to rebuild the code
- This includes several third party libraries included in the AWS Java SDK
- Edit the 'bin/AwsCredentials.properties' file
- Add your personal account info from http://aws.amazon.com/security-credentials
- Run 'glacier' to see a list of commands
- create_vault - create a new vault, same as you can do from the web interface
- delete_vault - delete a vault (note that it needs to be completely empty first)
- describe - display info about a vault
- list - display info about all vaults
- upload - upload a file to a vault
- download - download a file from a vault
- delete - delete a file from a vault
- dir - list the files in a vault
Referring to any file in a vault requires its ID. This will be displayed when the upload completes - you may wish to record this ID yourself, as listing the files in a vault with 'dir' can take a very long time.
This script could certainly be improved, but this is already many times easier than what is provided by Amazon. I hope it is of some help!
Post a Comment
Note: Only a member of this blog may post a comment.