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 rsync.proftpd.org::proftpd-ftp /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 rsync.proftpd.org:username password:proftpd-ftp /local/path/to/ftp/mirror
I hope someone out could answer this for me thanks.
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.
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 ftp://username:email@example.com
like this rsync -ave ftp://username:firstname.lastname@example.org /tmp
I still get this error I also tried rsync ftp.ftpsite.com /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.
ssh is not on that machine?
By the way, you may want to look into an application called "unison"
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 02:30 AM.|