With NC or rsync transfer files and directories

Target (172.16.1.125):

nc -l 12345 | tar zxvf -

Source machine (172.16.1.124):

tar cfz - * | NC 172.16.1.125 12345

rsync --hard-links -ropgt --bwlimit=100000 -v --progress -e "ssh" -o "GSSAPIAuthentication=no" * [email protected]:/data/18252/

Description:

--hard-links: hard links reserved

-ropgt: recursion, reservations owner, permissions, groups, time

--bwlimit: speed 100M / S

--progress: show progress

Published 370 original articles · won praise 599 · Views 2.18 million +

Guess you like

Origin blog.csdn.net/wzy0623/article/details/104616462