
s3cmd is a popular command-line tool for managing S3-compatible object storage.
Vultr Object Storage is a highly scalable solution for storing large quantities of files. Our architecture was designed from the ground up to provide high redundancy and data durability, and backed by blazing fast NVMe caching to make sure you have the best storage performance. Vultr Object Storage is compatible with a subset of the S3 API. See our compatibility matrix for details.
You will need:
The s3cmd configuration file, .s3cfg, is located in your home directory. It's a plain text file that defines the default options when you run commands. You can specify a different configuration file with the -c ~/path/to/config/file command-line option. To configure Vultr as the default provider, complete the steps below.
Run s3cmd with the --configure option.
Enter your access and secret keys. Find these values in your Vultr Console.
Type Enter to accept the default region. Vultr ignores this value.
Enter one of Vultr's object storage hostnames for the S3 Endpoint. For example, if you choose the New Jersey location, use ewr1.vultrobjects.com.
Vultr's hostnames are:
ams1.vultrobjects.comewr1.vultrobjects.comsjc1.vultrobjects.comsgp1.vultrobjects.comEnter the DNS-style template. For example, if you choose the New Jersey location, use %(bucket)s.ewr1.vultrobjects.com.
Vultr's DNS-style templates are:
%(bucket)s.ams1.vultrobjects.com%(bucket)s.ewr1.vultrobjects.com%(bucket)s.sjc1.vultrobjects.com%(bucket)s.sgp1.vultrobjects.comOptional Encryption Password: GPG encryption protects objects while stored at Vultr. Setting this password does not automatically encrypt objects; it only makes the option available later. Linux users can usually accept the default path to GPG. macOS users may need to install GPG first, then locate the path with which gpg.
Enter Enter to use HTTPS protocol. Vultr Object Storage requires HTTPS.
Optional: If your network requires an HTTP Proxy, enter that here. Otherwise press Enter.
Press Y + Enter to test the s3cmd configuration.
Press Y + Enter to save the .s3cfg file.
For comprehensive documentation, see the official documentation. These are some of the most commonly-used commands.
Make a bucket.
Remove a bucket.
List the buckets.
List the objects in the bucket.
Delete all objects in a bucket.
Upload a file for private access.
Upload a file for public access.
Download a file.
Delete a file.
Change file permission to public access.
Change file permission to private access.
Enable public directory listing for a bucket.
Disable public directory listing for a bucket.
0 Comments
Be the first to comment and share your perspective with the community.