When you move files across servers, you can use tar over ssh. By using tar, you can keep the same attribute for...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
files and directories. This is faster that "scp -p".
Example: Here's how to copy over /usr/man/man1 from server1 to server2 in the same path.
server1> tar -cf - /usr/man/man1 | ssh server2 tar -xvf -
server2> ssh server1 tar -cf - /usr/man/man1 | tar -xvf -