Re: remote tar via ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@nachineB:tar cvf / ; tar xvf *

machineA# cd $WHERE-MACHINE-B-FILES-WILL-LIVE
machineA# ssh root@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.

-- 
 /\oo/\
/ /()\ \ David Mackintosh | 
         dave@xxxxxxxxxx  | http://www.xdroop.com

Attachment: pgptI1UlwuQOi.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux