Rsync * files only changed/created in the last 7 days .

Paul Slootman paul at debian.org
Fri Jul 2 12:40:19 GMT 2004


On Thu 01 Jul 2004, Linux wrote:
> 
> I'm trying to rsync an entire dir yet i only i want just what was
> created or changed in the past 7 days. I'm sure there is a way but i am
> just a bit unclear on the syntax that would make that happen.

Use find -mtime -8 to generate the list, then use rsync with the
--files-from option.

> I would also like to delete on the client side what is over 14 days old
> but i think i can get that with a simple cron job. 

Indeed...


Paul Slootman


More information about the rsync mailing list