Saturday, October 20, 2012

Remote copy using tar over ssh.

$tar -cvf - <source_content> | ssh <user@hostname> "tar -xvf - -C <where_to_copy>"

where,
-  : tells tar to compress and send output of tar to terminal ( at source )
- : tells tar to accept input from terminal and extract into directory specified by -C.

Observations :
It takes at least 40% of less time than actual scp/rcp takes !!

No comments:

Post a Comment