rsync -- cannot sync from ftp site

Status
Not open for further replies.

iinfi

mekalodu
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

In Pursuit of "Happyness"
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.
 
OP
iinfi

iinfi

mekalodu
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 :)
 
OP
iinfi

iinfi

mekalodu
all this while i was lookng at the -nc option which simply didnt overwrite the file.
the -O option does work
thanks a lot
 
Status
Not open for further replies.
Top Bottom