Re: [Hampshire] Finding files not used in the last 365 days …

Top Page
Author: Andy Smith
Date:  
To: hampshire
Subject: Re: [Hampshire] Finding files not used in the last 365 days - Adifferent idea using tar

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x5835f100.hantslug.org.uk.22054': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Mon May 21 16:53:03 2007 BST
gpg: using DSA key 2099B64CBF15490B
gpg: Can't check signature: No public key
Hi Brian,

On Mon, May 21, 2007 at 03:46:40PM +0000, Andy Smith wrote:
> find /path -type f -atime +365
>
>         Find files whose last *access time* was more than 365 days
>         ago.  If you prefer to use your mtime rule as before then do
>         that instead.  -atime's not going to work if the filesystem
>         is munted noatime, either.


In fact if you've already been trying to archive these then their
access times will have been updated anyway, so don't bother with the
atime plan and stick with your mtime one instead.

Cheers,
Andy