[OpenAFS] script to control garbage

systems@bii.a-star.edu.sg systems@bii.a-star.edu.sg
Fri, 1 Aug 2008 08:38:35 +0800 (SGT)


if n is 10 days

find /myvolume -mtime +10 -exec mv {} /myarchive \;

On Thu, 31 Jul 2008, Jason Edgecombe wrote:

> David Bear wrote:
> > I am wondering if anyone has written a tool that can scan through files in a
> > volume and check how old they are (last mod time?) and archive them if they
> > are more than N-days old?
> >
> > I seem to recal from the openafs conference that mtime=atime=ctime .. so
> > there needs to be some other way to determine how long a file has not been
> > used.
> >
> >
> I thought that atime wasn't updated unless the file was modified
> (mtime). In that case, a simple find command would work.
>
> Jason
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>