[CentOS] remote tar via ssh
David.Mackintosh at xdroop.com
Wed Sep 26 19:36:59 UTC 2007
On Wed, Sep 26, 2007 at 12:22:27PM -0700, ann kok wrote:
> can you tell me what is the exactly command?
> machineA# ssh root at nachineB:tar cvf / ; tar xvf *
machineA# cd $WHERE-MACHINE-B-FILES-WILL-LIVE
machineA# ssh root at machineB "cd / ; tar cfp - . " | tar xfp -
Beware of following network mounted filesystems or otherwise recursing.
Note that $WHERE-MACHINE-B-FILES-WILL-LIVE on machineA cannot be /
since it will likely interfere with the currently running OS.
/ /()\ \ David Mackintosh |
dave at xdroop.com | http://www.xdroop.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.centos.org/pipermail/centos/attachments/20070926/c0143b56/attachment.bin
More information about the CentOS