-
Notifications
You must be signed in to change notification settings - Fork 11
Working with S3
Amazon S3 is a cloud storage provided by Amazon Web Services (AWS).
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:
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.
To install s3cmd on Ubuntu or Debian:
sudo apt-get install s3cmd
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
.
s3cmd sync -r --skip-existing . s3://foldername/
http://cloud-engineering.forthscale.com/2011/04/mounting-s3-as-file-system-on-linux.html