LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-30-2004, 08:31 PM   #1
bgriesi
Member
 
Registered: Aug 2003
Location: MidWest
Distribution: Mandrake, knoppix
Posts: 55

Rep: Reputation: 15
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?
EXAMPLE
rsync -rtlzv --delete rsync.proftpd.org:roftpd-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

EXAMPLE
rsync -rtlzv --delete rsync.proftpd.org:username passwordroftpd-ftp /local/path/to/ftp/mirror

I hope someone out could answer this for me thanks.
 
Old 12-30-2004, 08:39 PM   #2
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
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.
 
Old 12-31-2004, 08:01 AM   #3
bgriesi
Member
 
Registered: Aug 2003
Location: MidWest
Distribution: Mandrake, knoppix
Posts: 55

Original Poster
Rep: Reputation: 15
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://usernameassword@ftpsite.com

like this rsync -ave ftp://usernameassword@ftpsite.com /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.
 
Old 12-31-2004, 08:14 AM   #4
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
ssh is not on that machine?

That's amazing!

By the way, you may want to look into an application called "unison"
 
Old 12-31-2004, 08:19 AM   #5
bgriesi
Member
 
Registered: Aug 2003
Location: MidWest
Distribution: Mandrake, knoppix
Posts: 55

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync --delete question Red Squirrel Linux - Software 2 10-10-2005 09:55 PM
rsync question kpachopoulos Linux - General 3 07-15-2005 03:33 PM
rsync error AND/OR dump question Sinope Linux - General 4 08-26-2004 05:57 PM
Another Rsync question phatboyz Linux - Networking 2 07-02-2004 08:46 AM
rsync question falco365 Programming 4 05-25-2003 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration