-   Linux - Networking (
-   -   Question about rsync (

bgriesi 12-30-2004 08:31 PM

Question about rsync
Here I want to mirror a ftp site so I put rsync on my mandrake 9.2 server with proftpd. Does teh other site have to have rsync as well?

according to what I have seen I should just be able to put this in and it should begin to sync?
rsync -rtlzv --delete /local/path/to/ftp/mirror

BUT the --delete if I read this right will delete the stuff on my server that does nto match the other? is that correct? Also the ftp site I want to mirror requires a username and password so would i put that in after the site name like

rsync -rtlzv --delete password:proftpd-ftp /local/path/to/ftp/mirror

I hope someone out could answer this for me thanks.

amfoster 12-30-2004 08:39 PM

Ceratinly, I would consider usinf rsync with ssh. You can get ssh to be passwordless and sync the directory structures in a secure way. rsync is not secure, but running it through ssh will make it secure.

If you are passwordless to your other server with ssh, the syntax is

rsync --delete -ave ssh thisdirectory otherhost:/thatdir

that will sync all files, verbosely, the e tunnels it thru ssh and the --delete will delete files on the remote server that aren't on the local.

bgriesi 12-31-2004 08:01 AM

Well i keep getting errors that the IPC code (code14) at pipe.c(82)
Rsync error failed to exec rsh : no such directory
rsync : connection closed unexpectedly
rsync : error in rsync protocol data stream code (12) at io.c (165)

I tried to do it the same way I would log in to my ftp via web browser

like this rsync -ave /tmp

I still get this error I also tried rsync /tmp thinking that is may ask for password but it does not.

when i put the ssh in the command line I get a name of service not known.

amfoster 12-31-2004 08:14 AM

ssh is not on that machine?

That's amazing!

By the way, you may want to look into an application called "unison"

bgriesi 12-31-2004 08:19 AM

Well I begining to wonder if I just did not install the ssh because I went as bare as possible on this pc because I did not want everything on it just ftp services. I will look at that unison

Thanks for the quick response.

All times are GMT -5. The time now is 03:39 AM.