Tutorial on installing AWS S3cmd commands in Linux

Source: Internet
Author: User
Tags centos

The S3cmd command is a very powerful tool that can operate on AWS S3, not only to download and upload files, but also to create catalogs and other features.

S3cmd's use scenarios are very rich, such as when you back up your local log files to S3, you can use the combination of s3cmd and cron to make regular backups. For example, when the storage period of the log file is 365 days, use S3cmd to delete the specified directory from S3, and so on.

Here's a description of the steps to install the S3cmd command under CentOS.

Installation steps

The use of s3cmd under CentOS requires Python. The default Python version of the CentOS6.5 provided by AWS is 2.6.6.

The code is as follows Copy Code

# python-v
Python 2.6.6
# cd/tmp
# wget http://downloads.sourceforge.net/project/s3tools/s3cmd/1.5.0-alpha3/s3cmd-1.5.0-alpha3.tar.gz
#
# tar ZXVF s3cmd-1.5.0-alpha3.tar.gz
#
# CD S3CMD-1.5.0-ALPHA3
#
# python setup.py Install
・・・
# which S3cmd
/usr/bin/s3cmd

S3cmd–configure command for S3cmd configuration.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.