<---Copy directory how do I exclude files? Common command CP, usage low--->
TAR-CF-./*--exclude= "nohup.out" | (cd/opt/&& tar-xf-) rsync--exclude= "Nohup.out"
<---CP multiple copies can be replaced with a command-line keyword, exclamation point! Represents the previous command, 2 represents the upper command--->
\CP-RFP Loggerserver/data/server/loggerserver_acc!:gs/loggerserver/nameserver/!-2:gs/loggerserver/sessionserver /
<---Tar with NC can do two machine data transmission, NC If you need to continue to connect with the option-K--->
TAR-CF-./*--exclude= "nohup.out" | Nc-l 13100NC 192.168.1.1 13100 | TAR-XF-
<---Another way to send data by port, a machine runs the above command, B machine runs the following command--->
Python-m Simplehttpserver 13100wget-c http://${ip}/file.tar.gz
@@ 扩展 Usage: a script written by the central machine does not want to be pushed out of execution can borrow the above port
Bash < (curl-s http://mywebsite.com/myscript.sh)
This article is from the "Ithandonglin" blog, make sure to keep this source http://ithandonglin.blog.51cto.com/12414114/1886220
linux:-tips for copying or transferring files