Skip to content

pushtf/pushtf-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#push.tf

Command line client for push.tf cloud storage service.

Development

Developement is in beta stage and many features are still in the pipe.

Compilation

Use the dedicated Makefile by running the command:

make && make clean

If you want to install it on you file system, simply run:

make install

Note that it might require administrator privileges.

If you want to compile it by yourself, use:

gcc *.c -D_FILE_OFFSET_BITS=64 -Wall -lcurl -o pushtf

This tool depends of libcurl. It compiles at least under Linux x86 (32/64 bit), Linux Armv7 (Raspberry Pi, Scaleway), Mac OSX (Tiger, Snow Leopard, Yosemite), FreeBSD...

Pre-compiled standalone binaries are available on push.tf :

# Linux (64 bits)
wget http://push.tf/linux/pushtf

# Raspberry Pi
wget http://push.tf/rpi/pushtf

# Mac OSX
curl -O http://push.tf/mac/pushtf

Usage

Usage:
   pushtf [options] file_or_ID

Options:
-d | --debug       debug mode
-e <expiration>    set file expiration in hours
-f                 force file overwriting
-g | --get         get a file
-h | --help        this help
-m <value>         set file maximum downloads
-o <filename>      output filename w/ --get
-q | --quiet       quiet mode
-u                 turn on hardened url mode
-v | --verbose     verbose mode
-V | --version     display components versions

Push files:
pushtf FILE [FILE ..]

Get files:
pushtf -g ID [ID ..]

Examples

Send file

$ pushtf datas.zip
100 % [****************************************************] 82392529 bytes
datas.zip : http://push.tf/8091

Retrieve file

$ pushtf -g 8091
100 % [****************************************************] 82392529 bytes
filename : datas.zip

Send piped data

$ tar zcf - directory | pushtf -
4669104 bytes - 112 KB/s
(null) : http://push.tf/8059

Pipe retrieved data

$ pushtf -g 8059 -o - | tar zxf -

or

$ curl -s http://push.tf/8059 | tar zxf -

Hardened url mode

You can turn on hardened url mode with -u option. Instead of being random digits, ID is made of random alphanumeric characters. String length is also random.

$ pushtf -u /tmp/file
100 % [****************************************************] 17347483 bytes
/tmp/file : http://push.tf/aKGZAdaJnLJEDMT3rO

Maximum downloads limitation

You can limit file downloads using -m option.

$ pushtf -m 2 /tmp/file
100 % [****************************************************] 17347483 bytes
/tmp/file : http://push.tf/74

$ pushtf -g 74
100 % [****************************************************] 17347483 bytes
filename: file

$ pushtf -g -f 74
100 % [****************************************************] 17347483 bytes
filename: file

$ pushtf -g -f 74
Error: 410 Gone

About

Official http://push.tf command line client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published