Advertisements
Installing s3cmd:
First you have to install the repo file of s3cmd in the system.you can get the repo from the following url.
http://s3tools.org/repo/RHEL_5/
save the repo in your /etc/yum.repos.d/ as follows
[root@xxxxxxx ~]# cat /etc/yum.repos.d/s3cmd.repo
#
# Save this file to /etc/yum.repos.d on your system
# and run "yum install s3cmd"
#
[s3tools]
name=Tools for managing Amazon S3 - Simple Storage Service (RHEL_5)
type=rpm-md
baseurl=http://s3tools.org/repo/RHEL_5/
gpgcheck=1
gpgkey=http://s3tools.org/repo/RHEL_5/repodata/repomd.xml.key
enabled=1
[root@xxxxxxx ~]#
Now Install it using yum:
[root@xxxxxxx ~]# yum install s3cmd
Now configure it. It will ask your access key, secret key and encryption key(just hit enter if you don't want).
[root@xxxxxxx ~]# s3cmd --configure
Now you will be able to list your buckets in your amazon s3 storage using the following command.
[root@xxxxxxx ~]# s3cmd ls
Look here or more s3cmd examples
No comments:
Post a Comment
Be nice. That's all.