Skip to content
cccs-ip edited this page Oct 7, 2014 · 3 revisions

About S3

Amazon S3 is a cloud storage provided by Amazon Web Services (AWS).

Root user

User accounts

Granting Applications that Run on Amazon EC2 Instances Access to AWS Resources

Administering Access Keys for IAM Users

And I created users via the Identity and Access Management console:

Working with S3

Gaining terminal access with s3cmd

A popular and simple Amazon S3 command line tool is s3cmd, (written in python). s3cmd is not only helpful for active maintenance; it can be deployed run scripted cron jobs such as daily backups.

s3cmd installation

To install s3cmd on Ubuntu or Debian:

sudo apt-get install s3cmd

s3cmd configuration

You need to configure s3cmd before using it for the first time by running s3cmd --configure. You'll be prompted with series of questions:

  • access key and secret key for AWS S3
  • encryption password for encrypted data transfer to and from AWS S3.
  • path to GPG program used to encrypt data (e.g., /usr/bin/gpg)
  • whether to use HTTPS protocol
  • name and port of HTTP proxy if used

Configuration will then be saved as a plain text in ~/.s3cfg.

Basic Usage of s3cmd

Copying without redundancy

s3cmd sync -r --skip-existing . s3://foldername/

Mounting S3 to your file system

http://cloud-engineering.forthscale.com/2011/04/mounting-s3-as-file-system-on-linux.html