Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matiaskorhonen/shells3
A small(ish) shell script to upload files to S3 from the command line
https://github.com/matiaskorhonen/shells3
Last synced: 2 months ago
JSON representation
A small(ish) shell script to upload files to S3 from the command line
- Host: GitHub
- URL: https://github.com/matiaskorhonen/shells3
- Owner: matiaskorhonen
- License: mit
- Created: 2015-05-02T11:49:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-15T18:08:59.000Z (about 9 years ago)
- Last Synced: 2023-04-21T15:37:51.319Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 151 KB
- Stars: 21
- Watchers: 0
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ShellS3
Need to quickly upload and get a link to a file? This small Bash script will help you do just that.
The files are automatically given a timestamp suffix to avoid naming conflicts. For example, `image.png` will be uploaded as `image-1430566517.png`.
## Usage
1. Put the [script](shells3.sh) somewhere in PATH (e.g. /usr/local/bin).
```sh
cp shells3.sh /usr/local/bin/shells3
```2. Add a configuration file to `~/.shells3.conf`. See [shells3.sample.conf](shells3.sample.conf) for a description of the configuration options.
```sh
cp shells3.sample.conf ~/.shells3.conf
vim ~/.shells3.conf # Edit the configuration in your favourite editor
```3. Upload a file
```sh
shells3 image.png
```## Compatibility and dependencies
Only tested on OS X 10.10 Yosemite, but the script should work on any unix-like operating system. Aside from Bash, the only dependency is [curl](http://curl.haxx.se/).
## License and Copyright
The MIT License (MIT). Copyright (c) 2015 Matias Korhonen
Based on Chris Parsons's [s3.sh](http://git.io/vJ45L).