Install ec2-api-tools & s3cmd by Amazon

    When launching a Linux instance on Amazon cloud, the database does not have such an important utility as ec2-api-tools, which includes most of the API commands for working with Amazon and its services, and s3cmd are tools for working with S3.


    1. Installing ec2-api-tools

    We will install the classic old-fashioned method, because FC8 is not included in yum.

    We install Java and export JAVA_HOME A
    source for downloading fresh JAVA Here We download fresh ec2-api-tools and export EC2_HOME Sets the variable to PATH Also export & PATH can be written to / etc / profile for constant use. 2. We put s3cmd In general, the package is in the system (as comrade maxout already wrote about here

    mv jre-6u20-linux-i586.bin?AuthParam=1272..... jre.bin
    chmod +x jre.bin
    ./jre.bin
    mv jre1.6.0_20 /usr/lib/jvm/
    ln -s /usr/lib/jvm/jre1.6.0_20/ /usr/lib/jvm/jre
    export JAVA_HOME=/usr/lib/jvm/jre




    curl -O s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip
    unzip ec2-api-tools.zip
    mv ec2-api-tools-1.3-24159 /usr/local/
    ln -s /usr/local/ec2-api-tools-1.3-24159 /usr/local/ec2-api-tools
    export EC2_HOME=/usr/local/ec2-api-tools




    PATH=$PATH:/usr/local/ec2-api-tools/bin





    , it’s worth reading about the implementation of backup based on s3)

    aptitude install s3cmdor yum install s3cmd.noarch

    after installing it you need to configure it.
    s3cmd --configure
    enter the access key & secret access key of your s3, it will save the settings in ~ / .s3cmd

    Or install from the archive. You can download the utility here. You can use it directly from the folder, if you do not want to install it, or you will need to install the Python “distutils” - . After that, the utility is ready to work, but you still have to configure it -
    tar xvfz s3cmd-0.9.9.91.tar.gz
    cd s3cmd-0.9.9.91




    python setup.py install
    apt-get install python-setuptools

    s3cmd --configure

    Also popular now: