Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have Windows 2008 Server on which i store DB backups on daily basis. I want to be able to download new files only using wget, curl or windows built-in FTP doesn't matter.

Can you help me with command? I need only new files, ones that exists on local machine (Windows Vista) and server should be skipped.


share|improve this question
up vote 1 down vote accepted

See the --noclobber option for wget. Also, if you have ncftpget available, I believe it skips existing files by default.

share|improve this answer

With wget: New = doesn't exist OR more recently modified

Each time run: (probably won't work on existing files - you need the initial download to contain the remote timestamp) wget --timestamping -r

With cURL you can use the -z option to specify that only files after a certain date should be downloaded

curl -z "Jun 30 2011"

share|improve this answer

What you are actually looking for is --timestamping. --no-clobber just wont download existing files taking no concideration if the files on the server are newer or not.

--timestamping looks at the file to see if the version remote is newer than local before downloading.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.