Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

up vote 1 down vote accepted
rsync --progress --files-from=<(find /src_path-mtime -3 -type f -exec basename {} \;) /src_path/ /dst_path
share|improve this answer

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

 
discard

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.