When you move files across servers, you can use tar over ssh. By using tar, you can keep the same attribute for 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 -
or
server2> ssh server1 tar -cf - /usr/man/man1 | tar -xvf -
Requires Free Membership to View
SearchSecurity.com members gain immediate and unlimited access to breaking industry news, virus alerts, new hacker threats, highly focused security newsletters, and more -- all at no cost. Join me on SearchSecurity.com today!
Michael S. Mimoso, Editorial DirectorThis was first published in September 2002