Skip to content

Instantly share code, notes, and snippets.

@bhalothia
Created May 10, 2014 14:05
Show Gist options
  • Save bhalothia/19ee0b282dce299c522d to your computer and use it in GitHub Desktop.
Save bhalothia/19ee0b282dce299c522d to your computer and use it in GitHub Desktop.
Command line tool for managing Amazon S3 and CloudFront services
S3cmd tool for Amazon Simple Storage Service (S3)
=================================================
S3cmd is a free command line tool and client for uploading,
retrieving and managing data in Amazon S3 and other cloud
storage service providers that use the S3 protocol, such as
Google Cloud Storage or DreamHost DreamObjects. It is best
suited for power users who are familiar with command line
programs. It is also ideal for batch scripts and automated
backup to S3, triggered from cron, etc.
Examples:
-> Pushing file to S3 bucket:
sudo s3cmd put <folder_needs_to_be_pushed>/ s3://<bucket_name> --recursive --acl-public
–acl-public is an extra parameter which is used to set your files publicly accessible.
-> Syncing a local folder with S3 bucket
sudo s3cmd sync --delete-removed --acl-public <folder_needs_to_be_pushed>/ s3://<bucket_name>
Other useful links:
http://s3tools.org/s3cmd
https://github.com/s3tools/s3cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment