AWS S3

S3 or Amazon Simple Storage Service provides a simple web-services interface that can be used to store and retrieve any amount of data, at any time, from anywhere on the web. It gives any developer access to the same highly scalable, reliable, secure, fast, inexpensive infrastructure that Amazon uses to run its own global network of web sites. The service aims to maximize benefits of scale and to pass those benefits on to developers.

AWS Free Tier
Includes 5GB storage, 20,000 Get Requests, and 2,000 Put Requests with Amazon S3.

http://aws.amazon.com/s3/

Introduction
http://amzn.to/1rlFqoH

Pricing
http://aws.amazon.com/s3/pricing/

http://calculator.s3.amazonaws.com/index.html

s3cmd
S3cmd is a tool for managing objects in Amazon S3 storage. It allows for making and removing "buckets" and uploading, downloading and removing "objects" from these buckets. It runs on Linux and Mac.

http://s3tools.org

Install
cd /root/misc git clone https://github.com/s3tools/s3cmd.git cd s3cmd sudo python setup.py install s3cmd --version

Configure
s3cmd --configure

Tweak Settings
nano ~/.s3cfg

bucket_location = EU host_bucket = %(bucket)s.s3-external-3.amazonaws.com

Create A Bucket
s3cmd mb s3://uniquename.subname.whatever

List Buckets
s3cmd ls

Upload Files
s3cmd put --recursive --dry-run ~/folder s3://uniquename.subname.whatever/

Sync Files
s3cmd sync --verbose ~/folder s3://uniquename.subname.whatever/

Restrict Access From An IP Address
https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-3

http://s3tools.org/kb/item10.htm

WARNING: Redirected To
Replace the bucket_host in the .s3cfg file with the one from the warning.

~/.s3cfg host_bucket = %(bucket)s.s3-external-3.amazonaws.com

Thanks to ServerFault.com.