Excluding old files

Dan Pritts danno at internet2.edu
Tue Nov 16 03:28:19 GMT 2004


On Mon, Nov 15, 2004 at 03:32:18PM -0000, John Oyler wrote:
> I would like a feature in rsync to exclude old files, say, by a specified
> number of days.
> Has anyone patched rsync at any time to provide this feature?

You could do something like this:

find /blah -mtime +30 > /tmp/exclude.list.$$
rsync --exclude-from=/tmp/exclude.list.$$

danno
--
dan pritts - systems administrator - internet2
734/352-4953 office        734/834-7224 mobile


More information about the rsync mailing list