Amazon S3 is a reasonably priced data storage service. Ideal for off-site backups, archiving and other data storage needs. It is generally more reliable than your regular web hosting for storing your files and images. Check out About Amazon S3 section to find out more.
S3cmd is a command line tool for uploading, retrieving and managing data in Amazon S3. It is best suited for power users who don’t fear command line. It is also ideal for scripts, automated backups triggered from cron, etc.
S3cmd is an open source project available under GNU Public License v2 (GPLv2) and is free for both commercial and private use. You will only have to pay Amazon for using their storage. None of these money go to S3cmd developers.
#vim /etc/yum.repos.d/s3cmd.repo [s3cmd] name=s3cmd baseurl=http://s3tools.org/repo/RHEL_5/ enabled=1 gpgcheck=0
[s3tools] name=Tools for managing Amazon S3 - Simple Storage Service (RHEL_6) type=rpm-md baseurl=http://s3tools.org/repo/RHEL_6/ gpgcheck=1 gpgkey=http://s3tools.org/repo/RHEL_6/repodata/repomd.xml.key enabled=1
#yum install s3cmd
#apt-get install s3cmd
To configure s3cmd
#s3cmd --configure [Enter Access Key and Secret Key]
Configuration file is saved into
To get Help
To List Buckets
To Delete Non-Empty Buckets
#s3cmd rb s3://buckt_name -fv
Copy buckets to local machine
#s3cmd get s3://buckt_name -r
#s3cmd mb s3://buckt_name
Syncing local dir with s3 Buckets
#s3cmd sync local_dir/ s3://buckt_name