Date: Wed, 11 Jan 2006 13:40:22 +0100 From: Erik Norgaard <norgaard@locolomo.org> To: chris@collins-ca.com Cc: freebsd-questions@freebsd.org Subject: Re: search by date Message-ID: <43C4FCB6.9020607@locolomo.org> In-Reply-To: <fbf53e700601102105r455e1796s62da365ee5b93fd8@mail.gmail.com> References: <fbf53e700601102105r455e1796s62da365ee5b93fd8@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Chris Collins wrote: > Can somebody tell me how to search for files by the date they were created. > Maybe somebody has a script they have created and would like to share. I > have about 5000 files in different directories I would like to backup crated > prior to 2003 and then delete. Any ideas? Check find(1) Unfortunately if you try to specify a specific age this is not in Unix time but in 24h intervals relative to when find was started. The -newer option on the other hand allows you to find all files created/accessed/modified since the times of a given file. The idea is that if you do incremental backups, you stamp a file in the backup dir and use that as reference to find which files have been modified since last backup. Cheers, Erik
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C4FCB6.9020607>