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.