Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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