Re: remote tar via ssh

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



Hi Les

I am trying to use rsync

1/ Are both machine to have rsync installed?

2/ machine A#rsync -essh machineB:/ .
I try this command but what wrong I am

rsync -essh root@machineB:/ .
skipping directory /.
client: nothing to do: perhaps you need to specify
some filenames or the --recursive option?

Thank you for your help

--- Les Mikesell <lesmikesell@xxxxxxxxx> wrote:

> ann kok wrote:
> > can you tell me what is the exactly command?
> > 
> > machineA# ssh root@nachineB:tar cvf / ; tar xvf *
> > 
> 
> You need a - after the f options to represent
> stdin/stdout and some 
> appropriate quoting.
> 
> ssh root@machineB 'tar cvf - /' |tar xvf -
> 
> (and you probably want to use --one-file-system or
> some excludes to 
> avoid /proc and any NFS/cdrom mounts).
> 
> But, I'd recommend:
>   rsync -essh machineB:/ .
> instead (also per filesystem with --one-file-system)
> - especially if you 
> want to repeat it or restart after interruption.
> 
> -- 
>    Les Mikeselll
>     lesmikesell@xxxxxxxxx
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
> 



      ____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
_______________________________________________
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