Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

When fetching recursively with wget from an FTP server, how can I download only files modified after a given date?

The use case is that I need to sync with several servers nightly, but I only need the data from a couple days back. The --mirror flag would suffice, except that syncing the rest of the data (even just once) would take forever.

share|improve this question

wget can mirror once and then after this only get later items with the --timestamp flag. I'd suggest reading the info page for it, which has a good explanation, and checking if this gives you the behaviour you are looking for.

share|improve this answer
In fact, --mirror implies --timestamping. – John Flatness Sep 24 '11 at 20:05

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.