1
0
Fork 0
bin/senddir

13 lines
306 B
Plaintext
Raw Permalink Normal View History

2017-01-15 09:29:01 +00:00
#!/usr/bin/env bash
if [ "$#" -ne 2 ]; then
echo Send an entire directory over the network.
2017-05-09 17:30:21 +00:00
echo Shows progress via pv - note that progress is measured before compression is added.
echo
2017-01-15 09:29:01 +00:00
echo Usage:
echo " senddir directoryname listen_port_number"
exit
fi
tar cf - "${1}" | pv | gzip | nc -l $2