The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Article Feedback - scp tricks
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 tar pipes over ssh
Author: Scott Lewis 
Date:   30-06-03 15:48

For a more efficient ssh recursive copy, use a tar pipe:


tar cf - dirname | ssh user@host 'cd /path/to/destination/root ; /usr/bin/tar -xf -'



Rather than sending each file individually, this lets you send one tar archive, and unpack on the other end.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 tar pipes over ssh   new
Scott Lewis 30-06-03 15:48 
 Re: tar pipes over ssh   new
Scott Lewis 30-06-03 16:36 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org