Server Fault is a question and answer site for system and network administrators. 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

I would like to rsync folders from a specific date and forward. for example. I want to rsync my folders that were created from 3 days ago (and of course 2 days ago, one day ago etc.). I know I need to use find and rsync but I'm not sure how. any idea? Thanks! Dotan.

share|improve this question
up vote 2 down vote accepted
rsync --progress --files-from=<(find /src_path-mtime -3 -type f -exec basename {} \;) /src_path/ /dst_path
share|improve this answer
Well placing in cron fails with error "rsync: failed to open files-from file <(find /......;): No such file or directory rsync error: syntax or usage error (code 1) at main.c(1084) – user1595858 Jul 1 at 14:14

You would want to do a find then sync

find /path -file -mtime +3 -exec rsync {} destination \;
share|improve this answer
I think this is what I was looking for: find /path -d -mtime -3 – edotan Sep 13 '13 at 20:46

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.