Command line client for push.tf cloud storage service.
Developement is in beta stage and many features are still in the pipe.
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:
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 ..]
$ pushtf datas.zip
100 % [****************************************************] 82392529 bytes
datas.zip : http://push.tf/8091
$ pushtf -g 8091
100 % [****************************************************] 82392529 bytes
filename : datas.zip
$ tar zcf - directory | pushtf -
4669104 bytes - 112 KB/s
(null) : http://push.tf/8059
$ pushtf -g 8059 -o - | tar zxf -
or
$ curl -s http://push.tf/8059 | tar zxf -
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
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