https://github.com/icio/step-s3sync
https://github.com/icio/step-s3sync
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/icio/step-s3sync
- Owner: icio
- Created: 2013-11-26T19:40:48.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-26T20:48:21.000Z (over 12 years ago)
- Last Synced: 2025-04-03T20:12:34.041Z (about 1 year ago)
- Language: Shell
- Size: 108 KB
- Stars: 0
- Watchers: 2
- Forks: 27
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# s3sync
Synchronized a directory to a s3 bucket. It makes the bucket identical to the `source-dir`.
Note that this means that remote files that are not in the `source-dir` are deleted.
The synchronized files will get an public access level.
You can use application and deployment variables in wercker.
View this step in the [wercker directory](https://app.wercker.com/#applications/51c82a063179be4478002245/tab/details)
Current status on wercker:
[](https://app.wercker.com/project/bykey/2064379a8b583cd1b5da16de3faa5583)
## Options
* `key-id` (required) The Amazon Access key that will be used for authorization.
* `key-secret` (required) The Amazon Access secret that will be used for authorization.
* `bucket-url` (required) The url of the bucket to sync to, like: `s3://born2code.net`
* `source-dir` (optional, default: `./`) The directory to sync to the remote bucket.
* `opts` (optional, default: `--acl-public`) Arbitrary options provided to s3cmd. See `s3cmd --help` for more.
## Example
- s3sync:
key-id: $KEY
key-secret: $SECRET
bucket-url: $BUCKET
source-dir: $SOURCE
opts: --acl-private
## Privacy
By default s3sync will make the files publicly available from your S3 bucket, but you can use the "opts" option to manually specify an ACL option to s3cmd. At the time of writing, these are:
```
-P, --acl-public Store objects with ACL allowing read for anyone.
--acl-private Store objects with default ACL allowing access for you
only.
--acl-grant=PERMISSION:EMAIL or USER_CANONICAL_ID
Grant stated permission to a given amazon user.
Permission is one of: read, write, read_acp,
write_acp, full_control, all
```