Posted 7 months ago. Visible to the public.

How to: Use different configurations for S3cmd

S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3. S3cmd reads its configuration by default from ~/.s3cfg, which is created once you run s3cmd --configure.

If you have many configurations, we recommend to always specify the configuration you want to use. This prevents applying actions to the wrong bucket.

Examples:

Copy
s3cmd -c ~/.s3cfg-github-staging ls s3cmd -c ~/.s3cfg-github-development ls s3cmd -c ~/.s3cfg-facebook-production ls

Keep in mind to move every new configuration from ~/.s3cfg to ~/.s3cfg-$project-$env.

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Emanuel De
Last edit:
7 months ago
by Henning Koch
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Emanuel De to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more