DIGIT-ARC read-only archive · snapshot: July 23, 2026

rsync -- cannot sync from ftp site

6 posts · originally from https://geek.digit.in/community/threads/rsync-cannot-sync-from-ftp-site.111753/

iinfi
iinfi Original post #1
Mar 27, 2009 at 4:50 PM
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:~ #
kalpik
kalpik #2
Mar 27, 2009 at 11:55 PM
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.
iinfi
iinfi #3
Mar 28, 2009 at 12:10 AM
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 :)
iinfi
iinfi #4
Mar 29, 2009 at 3:10 AM
oye doston plz help ......
iinfi
iinfi #6
Mar 29, 2009 at 2:00 PM
all this while i was lookng at the -nc option which simply didnt overwrite the file.
the -O option does work
thanks a lot