Re: How to delete files two days older from system

From: Bit Twister (BitTwister_at_localhost.localdomain)
Date: 08/22/03


Date: Fri, 22 Aug 2003 18:09:00 GMT

On 22 Aug 2003 10:49:26 -0700, Mukesh Jain wrote:
> Hi,
>
> I have database backup which is running daily basis and storeing in
> some directory. I want to keep two current consecutive days backup
> file and wanna remove older file instead of last two. Is there any
> unix command or date option there so I can use in script?

man find

Example:
find /tmp -name kfm*.* -mtime +5 -exec rm '{}' \;



Relevant Pages

  • Re: How to delete files two days older from system
    ... > I have database backup which is running daily basis and storeing in ... Read the man pages and then try this on some test files before ...
    (comp.unix.admin)
  • Re: Shrink File?
    ... > supposed to change in that script. ... If the log is not shrinking, ... Perform a full database backup of the master database. ...
    (microsoft.public.sqlserver.setup)
  • How to delete files two days older from system
    ... I have database backup which is running daily basis and storeing in ... file and wanna remove older file instead of last two. ... unix command or date option there so I can use in script? ...
    (comp.unix.admin)