Learn how to configure S3cmd to manage your containers and objects.
S3cmd is a free command line tool and client for managing data in storage spaces that use the S3 protocol, such as S3 Object Storage, Google Cloud Storage, or DreamHost DreamObjects.
This tutorial is designed to help you as much as possible with common tasks. If you are having difficulty performing these actions, please contact a specialized service provider. OVHcloud can't provide you with technical support in this regard.
Requirements
- a container (see our Getting Started with S3 Object Storage guide)
- a user with the required access rights on the container
- your S3 credentials (access_key and secret_access_key)
- S3cmd installed
Instructions
To configure s3cmd, run the following command:
S3cmd is now ready to be used.
Command examples
List all buckets:
Create a new bucket:
List the contents of a bucket:
Synchronise /home/user/documents to a bucket
Copy a file /home/user/file.txt into a bucket:
Download a file file.txt from a bucket:
You will find a detailed documentation of the possible actions on the official S3cmd documentation.
Go further
For more information and tutorials, please see our other Object Storage support guides or explore the guides for other OVHcloud products and services.
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.