Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kennethkalmer/dirtos3
https://github.com/kennethkalmer/dirtos3
Last synced: about 15 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/kennethkalmer/dirtos3
- Owner: kennethkalmer
- License: mit
- Created: 2015-04-19T20:06:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-19T20:06:23.000Z (over 9 years ago)
- Last Synced: 2024-04-16T05:35:25.081Z (7 months ago)
- Language: Go
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dirtos3
Upload all files (recursively) in a directory to an S3 bucket.
## Requirements
* [Go](https://golang.org)
* [git](http://git-scm.com)
* An [S3 Bucket](https://aws.amazon.com/S3)## Building
```sh
$ go get github.com/kennethkalmer/dirtos3
$ cd $GOPATH/src/kennethkalmer/dirtos3
$ go build dirtos3.go
```## Configuring
Set the following environment variables:
* `AWS_ACCESS_KEY_ID`
* `AWS_SECRET_ACCESS_KEY`
* `S3_BUCKET_NAME`
* `S3_PREFIX`These should all be blatantly obvious
## Running
```sh
$ ./dirtos3 -source="."
```## TODO
1. Parallelize uploads