Skip to main content

Convenient commandline utility to publish files on a webserver using rsync

Project description

# cliPublish
[![Build Status](https://travis-ci.org/mheistermann/cliPublish.svg?branch=master)](https://travis-ci.org/mheistermann/cliPublish)

## Introduction

cliPublish allows easily uploading a file to a fixed directory of your
webserver using rsync. On success it prints the URL the file will be available
at.

## Usage
You need to create a small config file in `~/.config/cliPublish/remotes.conf`.
There is an example file in [cliPublish/remotes.conf.example](cliPublish/remotes.conf.example).

## Example

```
$ cliPublish.py 20140903_0399.JPG
20140903_0399.JPG
310,428 100% 264.80MB/s 0:00:00 (xfr#1, to-chk=0/1)
http://tmp.mheistermann.de/20140903_0399.JPG
```

Optionally you can also specify a filename for the remote side:

```
$ cliPublish.py 20140903_0399.JPG ijen_crater.jpg
20140903_0399.JPG
310,428 100% 264.80MB/s 0:00:00 (xfr#1, to-chk=0/1)
http://tmp.mheistermann.de/ijen_crater.jpg
```

## License

cliPublish was written by Martin Heistermann <github()mheistermann.de>
and is available under the terms of the GPL v3.



## Ideas

* Automatic copy to clipboard
* Support multiple servers in config, select using optional argument
* Warn/stop/backup if remote filename already exists
* Upload multiple files at once, creating a directory with an index.html

## Contributing

Send me a pull request on github or [email me a patch](mailto:github[]mheistermann.de).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cliPublish-0.2.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file cliPublish-0.2.1.tar.gz.

File metadata

  • Download URL: cliPublish-0.2.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cliPublish-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f0d22e51652526311de6aaf0182083ff94780e4e9b69a0df76f5121d72308828
MD5 41f208c89344c187fe5cc2166a0c6f53
BLAKE2b-256 41dd23915bb09e796af14afae2962b4412b1fd3e240d0860629ce1b2ba2a2e20

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page