I tried it. but it only rysc one file from my host to 192.168.0.37? peter? why
I have many files under /var/spool/mail eg: john, paul rsync -avuze /usr/bin/ssh [EMAIL PROTECTED]:/var/spool/mail Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.0.37' (RSA) to the list of known hosts. [EMAIL PROTECTED]'s password: receiving file list ... done drwxrwxr-x 4096 2002/02/01 04:15:01 mail -rw-rw---- 12800028 2002/02/01 04:15:01 mail/peter ----- Original Message ----- From: "Oscar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 10:55 AM Subject: Re: [expert] Rsync over ssh.. 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 >
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
