Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 27-03-2009, 04:50 PM   #1 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default rsync -- cannot sync from ftp site


i need to sync a file on a desktop (SLED 11) from an ftp server (windows FTP)

is it possible to use rsync for the same?

Code:
sled1:~ # rsync ftp://192.168.5.215/pam_mount.conf.xml /etc/security/
ssh: Could not resolve hostname ftp: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(632) [receiver=3.0.4]
sled1:~ # man rsync
sled1:~ #
__________________
mekalodu
iinfi is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 27-03-2009, 11:55 PM   #2 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default Re: rsync -- cannot sync from ftp site

rsync is a protocol in itself.. Just like FTP.. So its rsync:// and that will ONLY work if the server is running an rsync daemon.
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 28-03-2009, 12:10 AM   #3 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default Re: rsync -- cannot sync from ftp site

oh .. yea ... i found that out ...
hmmm .. is there any other way i can do it?
the wget ftp://192.168.5.215/pam_mount.conf.xml /etc/security/pam_mount.conf.xml
does fetch the file from the ftp server...to /etc/security but if i create a cron job to fetch the file regularly from the FTP server then it creates files like

/etc/security/pam_mount.conf.xml1
/etc/security/pam_mount.conf.xml2
/etc/security/pam_mount.conf.xml3

which i dont want. i dont see an option in wget man pages as to overwrite if a file already exists
plz suggest
__________________
mekalodu
iinfi is offline  
Old 29-03-2009, 03:10 AM   #4 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default Re: rsync -- cannot sync from ftp site

oye doston plz help ......
__________________
mekalodu
iinfi is offline  
Old 29-03-2009, 09:38 AM   #5 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default Re: rsync -- cannot sync from ftp site

Try wget ftp://192.168.5.215/pam_mount.conf.xml -O /etc/security/pam_mount.conf.xml

Else create a script to delete the file first if it exists, and then download it.
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 29-03-2009, 02:00 PM   #6 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default Re: rsync -- cannot sync from ftp site

all this while i was lookng at the -nc option which simply didnt overwrite the file.
the -O option does work
thanks a lot
__________________
mekalodu
iinfi is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan

Advertisement




All times are GMT +5.5. The time now is 04:34 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2