19
1
I have a CentOS server online with a directory of cPmove files I need to back up to Amazon Glacier. I only have command line access, no GUI.
I need a command line client that is relatively easy to use to upload the files. For example I have used dropbox_uploader.sh before ( https://github.com/andreafabrizi/Dropbox-Uploader ) with this simple bash script:
#!/bin/bash
find /backup_folder -maxdepth 1 -name "cpmove-*.tar.gz" | while read CPMOVE
do
./dropbox_uploader.sh upload ${CPMOVE}
done
I saw this one: https://github.com/carlossg/glacier-cli but I don't have java installed on the server and am a bit hesistant to install it, due to all the security issues lately.
I do have python and ruby:
me@server [/home]# python -V
Python 2.4.3
root@server [/home]# ruby --version
ruby 1.8.7 (2012-06-29 patchlevel 370) [i686-linux]
me@server [/home]#
Is there a ruby (preferable) or python or other language (less preferable) amazon glacier command line client?)
Sorry, I had not looked into Glacier in depth, I thought you had normal ssh access. Answer deleted. – terdon – 2013-02-05T02:42:38.150
I have since found out that I can upload to s3 with ruby's fog gem. Then, from s3's aws management console, I can set an expiration policy and have the files archived to glacier. Works. Also, fog supports Glacier directly but I haven't looked into that yet. For anyone that's curious, here's my ruby script for uploading to s3: https://gist.github.com/ivanoats/4712421
– Ivan – 2013-02-05T07:32:39.707