LoginSignup
1
1

More than 5 years have passed since last update.

Amazon Glacier CLI(Python)のインストール

Last updated at Posted at 2013-04-05

Amazon Glacierのコマンドラインインターフェースのインストールをする。

本体はここ。
https://github.com/uskudnik/amazon-glacier-cmd-interface

基本sudoで操作した(もっとキッチリできるのかも知れぬが…)。

$ git clone https://github.com/uskudnik/amazon-glacier-cmd-interface.git
$ cd amazon-glacier-cmd-interface
$ python setup.py install

Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    from setuptools import setup
ImportError: No module named setuptools

setuptoolsが必要らしい。

http://d.hatena.ne.jp/torutk/20080614/p1
を参考にして(多謝)、

$ wget http://peak.telecommunity.com/dist/ez_setup.py
$ python ez_setup.py 

Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
Processing setuptools-0.6c11-py2.6.egg
Copying setuptools-0.6c11-py2.6.egg to /usr/local/lib/python2.6/dist-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.6 script to /usr/local/bin

Installed /usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11

改めて

$ cd amazon-glacier-cmd-interface
$ python setup.py install

イロイロ入るようだが、暫く待てばインストール完了

$ glacier-cmd
usage: glacier-cmd [-h] [-c FILE] [--logtostdout] --aws-access-key
                   AWS_ACCESS_KEY --aws-secret-key AWS_SECRET_KEY --region
                   REGION [--bookkeeping] [--no-bookkeeping]
                   [--bookkeeping-domain-name BOOKKEEPING_DOMAIN_NAME]
                   [--logfile LOGFILE]
                   [--loglevel {-1,DEBUG,0,INFO,1,WARNING,2,ERROR,3,CRITICAL}]
                   [--output {print,csv,json}]
                   [--sdb-access-key SDB_ACCESS_KEY]
                   [--sdb-secret-key SDB_SECRET_KEY] [--sdb-region SDB_REGION]

                   {listjobs,treehash,lsvault,mkvault,search,rmarchive,getarchive,upload,listmultiparts,describevault,inventory,rmvault,download,abortmultipart,describejob,sns}
                   ...
glacier-cmd: error: too few arguments

設定があるようだが、それはまた今度書く。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1