1
0
Fork 0
bin/recvdir

13 lines
332 B
Plaintext
Raw Normal View History

2017-01-15 09:07:26 +00:00
#!/usr/bin/env bash
if [ "$#" -ne 2 ]; then
echo Recieve an entire directory from the network and save it to the current directory.
2017-01-15 09:33:21 +00:00
echo Shows recieving progress via pv. Note that the progress indicator is before compression has been removed.
2017-01-15 09:07:26 +00:00
echo Usage:
echo " recvdir ip_address port"
exit
fi
2017-01-15 09:33:21 +00:00
nc $1 $2 | pv | tar xzf -
2017-01-15 09:07:26 +00:00