Using tar instead of ssh

When you move files across servers, you can use tar over ssh. Here's how.

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 -

This was last published in September 2002

Dig Deeper on Secure Remote Access

PRO+

Content

Find more PRO+ content and other member only offers, here.

Join the conversation

1 comment

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

This should be titled "Using tar instead of scp"
Cancel

-ADS BY GOOGLE

SearchCloudSecurity

SearchNetworking

SearchCIO

SearchConsumerization

SearchEnterpriseDesktop

SearchCloudComputing

ComputerWeekly

Close