使用nc和tar在不同机器间传输文件
Source Host, nc will listen on [port], redirect result of tar to nc;
$for i in $(ls); do tar -cf - $i | nc -l -p [port]; done
Dest Host, nc will connect to Source Host with port [port], and write to local disk;
for i in $(seq 1 [file count]); do nc [Source Host] [port] | tar -xf -; done
阅读(1442) | 评论(0) | 转发(0) |