Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binocarlos/rackspace-uploader
bash script that uploads a local folder to rackspace files using curl
https://github.com/binocarlos/rackspace-uploader
Last synced: 11 days ago
JSON representation
bash script that uploads a local folder to rackspace files using curl
- Host: GitHub
- URL: https://github.com/binocarlos/rackspace-uploader
- Owner: binocarlos
- License: mit
- Created: 2014-01-13T13:16:04.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-13T18:58:52.000Z (almost 11 years ago)
- Last Synced: 2024-04-14T14:36:47.089Z (7 months ago)
- Language: Shell
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rackspace-uploader
==================bash script that uploads a local folder to rackspace files using curl
## installation
If you have docker as part of your system then you can run the quarry/rackspace-uploader image and skip the installation.
For standard bash mode:
```
$ wget -qO- https://raw.github.com/binocarlos/rackspace-uploader/master/bootstrap.sh | sudo bash
```## usage
```
Usage: /usr/local/bin/rackspace-uploader [options]-h | --help show this help text
-f | --folder | RACKSPACE_FOLDER path to a local folder to upload
-u | --username | RACKSPACE_USERNAME the rackspace username
-a | --apikey | RACKSPACE_APIKEY the rackspace apikey
-c | --container | RACKSPACE_CONTAINER the rackspace container
```## example
Upload a folder using environment variables:
```bash
$ RACKSPACE_FOLDER=[folder] \
RACKSPACE_USERNAME=[username] \
RACKSPACE_APIKEY=[apikey] \
RACKSPACE_CONTAINER=[containername] \
rackspace-uploader
```Upload a folder using command line options:
```bash
$ rackspace-uploader \
--folder=[folder] \
--username=[username] \
--apikey=[apikey] \
--container=[container]
```You could also use a combination of the two.
## docker
The Dockerfile in the repository will build a container ready to run the uploader.Also - quarry/rackspace-uploader is a trusted build from this repo.
To use the docker container you need to mount the folder you want to upload:
```bash
$ docker run -i -t \
-v /my/folder/to/upload:/uploadfiles \
quarry/rackspace-uploader \
--folder=/uploadfiles
--username=[username]
--apikey=[apikey] \
--container=[container]
```## License
MIT