https://github.com/hashobject/boot-s3
Boot task for syncing local directory with AWS S3 bucket
https://github.com/hashobject/boot-s3
boot boot-tasks clojure
Last synced: 4 months ago
JSON representation
Boot task for syncing local directory with AWS S3 bucket
- Host: GitHub
- URL: https://github.com/hashobject/boot-s3
- Owner: hashobject
- License: epl-1.0
- Created: 2015-06-05T02:45:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-14T06:08:19.000Z (about 8 years ago)
- Last Synced: 2025-07-04T14:12:32.704Z (6 months ago)
- Topics: boot, boot-tasks, clojure
- Language: Clojure
- Homepage:
- Size: 28.3 KB
- Stars: 11
- Watchers: 1
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# boot-s3
[](https://jarkeeper.com/hashobject/boot-s3)
[](https://jarkeeper.com/hashobject/boot-s3)
[Boot](http://boot-clj.com/) task to sync local directory with AWS S3.
Most of the code borrowed from [lein-s3-sync](https://github.com/kanej/lein-s3-sync).
This task works in the efficient way and uploads only new or changed files to the s3.
## Install
```
[hashobject/boot-s3 "0.1.3-SNAPSHOT"]
```
## Usage
Add library
```
(require '[hashobject.boot-s3 :refer :all])
```
and use it:
```
boot s3-sync -h
Sync local directory to AWS S3
Options:
-h, --help Print this help info.
-s, --source PATH PATH sets subdirectory in :target-path to upload to s3.
-b, --bucket BUCKET BUCKET sets s3 bucket name.
-a, --access-key ACCESS_KEY ACCESS_KEY sets s3 access key.
-k, --secret-key SECRET SECRET sets s3 secret key.
-m, --metadata META Conj META onto a map with metadata to set on the objects, passed through to clj-aws-s3
-p, --permissions PERMS Conj PERMS onto a seq of 2-tuples of `[grantee permission]`, passed through to clj-aws-s3
-f, --force Set to `true` to force upload of all objects
```
## Contributions
We love contributions. Please submit your pull requests.
## License
Copyright © 2013-2017 Hashobject Ltd (team@hashobject.com).
Distributed under the [Eclipse Public License](http://opensource.org/licenses/eclipse-1.0).