How to download only newer versions of a file using FTP

Yasushi Okubo yasushi at cabm.rutgers.edu
Fri Oct 15 15:16:08 UTC 2004


rsync should check file info and transfer the ones you are looking for.

-u, --update
              This  forces  rsync  to skip any files for which the 
destination
              file already exists and has a date later than the source file.


Ryan Golhar wrote:

>I thought this was a simply problem but I'm having trouble finding the
>solution to this.
>
>There a a couple of files on an FTP site that I want to routinely
>download whenever they are updated ie only download newer versions of
>the file.  I looked at using ftp, curl, wget, and rsync, but none seem
>to have the options necessary to do this.  
>
>Does anyone know how I can do this?  Thanks,
>
>Ryan
>
>  
>




More information about the redhat-list mailing list