0.0.5 • Published 10 years ago
heimdall-s3 v0.0.5
Heimdall
Create a credentials file at ~/.aws/credentials on Mac/Linux or C:\Users\USERNAME\.aws\credentials on Windows
[default]
aws_access_key_id = your_access_key
aws_secret_access_key = your_secret_keyOr directly in your console:
AWS_ACCESS_KEY_ID=your_access_key \
AWS_SECRET_ACCESS_KEY=your_secret_key \
heimdall-s3 COMMAND [ARGS] [OPTIONS]Install
Just use npm
npm install -g heimdall-s3History
./heimdall-s3 history my/path/to/file.txt --region eu-west-1 --bucket my.bucket.orgThe output is something like:
# Rev Date Path
0 xxxxxxxxxxxxxx1 Thu Feb 18 2016 20:01:24 GMT+0100 (CET) path/to/file.xml
1 xxxxxxxxxxxxxx2 Thu Feb 18 2016 14:21:05 GMT+0100 (CET) path/to/file.xmlRevision
You can select a particular revision
./heimdall-s3 revision my/path/to/file.txt \
--version d5s92Db30MRPNllR2WRspKKs12sfasSK \
--region eu-west-1 --bucket my.bucket.orgOr directly the latest revision
./heimdall-s3 revision my/path/to/file.txt \
--region eu-west-1 --bucket my.bucket.orgSave to file
Just use the shell
./heimdall-s3 revision my/path/to/file.txt \
--region eu-west-1 --bucket my.bucket.org > file.txtDownload all revisions
We have a bifrost!
./heimdall-s3 bifrost my/path/to/file.txt \
--region eu-west-1 --bucket my.bucket.org \
--path /tmpWith the path option you can download all revision in a specific folder,
otherwise the current folder is used.