This page shows you how to use Object Storage with s3cmd.
Object Storage allows you to store any kind of objects (documents, images, videos, etc.). You can retrieve them anytime and from anywhere.
For instance, you can store images and they will be accessible using HTTP. You can use the control panel to manage your storage. As the our API is S3 compatible, a lot of tools exist to interact with the object storage.
This tutorial details how to use the Object Storage with s3cmd.
There are four steps to configure and use s3cmd:
To retrieve your credentials, refer to S3 credentials.
A simple solution to begin with Object Storage is to use the S3cmd tool, which is a client for S3 Object Storage.
S3cmd allows you to create, list and delete buckets, download, upload, and delete objects inside the Object Storage. Download S3cmd S3cmd on github.
If you use Linux or OS X, your package manager probably has a package for s3cmd.
Important: Make sure you have at least the version 2.0 (
s3cmd --version). Upgrade
s3cmdif it is not the case. Previous versions might not work properly.
1 . In a terminal, create a file named
.s3cfg in your home directory.
2 . Replace
access_key = <your_access_key> and
secret_key = <your_secret_key> with your credentials.
The following command creates a bucket to store objects with S3cmd. A bucket name must contain only alphanumeric and lowercase characters.
The following command uploads
photo1.jpg into the bucket
The following command lists the objects inside a bucket:
The following command downloads the object
The following command removes the object
movie1.avi from the bucket
The following command removes the bucket