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 email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
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 -