El jue, 31-01-2002 a las 18:42, Franki escribi�:
> I recently saw a message about rsync over ssh..
> 
> anyone doing that?  I would like to keep my production servers cgi-bin
> sync'd to my test servers..
> 
> (whenever I finish a new project and put it up for the outside world to
> test..
> 
> if I want to connect [EMAIL PROTECTED] to sync from
> [EMAIL PROTECTED]
> and use ssh to do it..
> 
> anyone know the command for that? and also, can the compression -C parameter
> be added to ssh? (for compression)
> 
> 
> 
> rgds
> 
> Frank

Ok. I believe what you want is:

(If you are in front of host1)

To sync files from host1 to host2:

cd yourdir
rsync -avuze /usr/bin/ssh . user@host2:/dir/
 
To sync from server2 to server1:

cd yourdir
rsync -avuze /usr/bin/ssh user@host2:/dir/ .

In other words:
rsync [options] srcdir [user@]host:destdir

rsync [options] [user@]host:srcdir destdir

Hope this help.
Saludos
�scar.
-- 
  .-.
  oo|
 /`'\  Usuario de Linux Registrado #227443
(\_;/) http://counter.li.org/


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to