Last active
December 29, 2015 12:19
-
-
Save tkuchiki/7669355 to your computer and use it in GitHub Desktop.
s3cmd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ s3cmd --configure | |
Enter new values or accept defaults in brackets with Enter. | |
Refer to user manual for detailed description of all options. | |
Access key and Secret key are your identifiers for Amazon S3 | |
Access Key: Write your Access Key | |
Secret Key: Write your Secret Key | |
Encryption password is used to protect your files from reading | |
by unauthorized persons while in transfer to S3 | |
Encryption password: | |
Path to GPG program [/usr/bin/gpg]: | |
When using secure HTTPS protocol all communication with Amazon S3 | |
servers is protected from 3rd party eavesdropping. This method is | |
slower than plain HTTP and can't be used if you're behind a proxy | |
Use HTTPS protocol [No]: Yes | |
New settings: | |
Access Key: AKIAIHN55JTP6NJHROTQ | |
Secret Key: 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 | |
Encryption password: | |
Path to GPG program: /usr/bin/gpg | |
Use HTTPS protocol: True | |
HTTP Proxy server name: | |
HTTP Proxy server port: 0 | |
Test access with supplied credentials? [Y/n] | |
Please wait... | |
Success. Your access key and secret key worked fine :-) | |
Now verifying that encryption works... | |
Not configured. Never mind. | |
Save settings? [y/N] y | |
Configuration saved to '/root/.s3cfg' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List objects or buckets | |
## dir | |
$ s3cmd ls s3://BUCKET[/PREFIX] | |
DIR s3://BUCKET/PREFIX | |
## file | |
### YYYY-MM-DD HH:MM FILE_SIZE(Byte) FILE_PATH | |
$ s3cmd ls s3://BUCKET/PREFIX/ | |
2013-11-27 02:25 2090061279 s3://BUCKET/PREFIX/dump.gz | |
# Put file into bucket | |
$ s3cmd put FILE [FILE...] s3://BUCKET[/PREFIX] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment