[SLE] find and delete older file

From: Agi Subagio (agi.subagio_at_saranaasiaraya.com)
Date: 05/21/04

  • Next message: Hartmut Meyer: "Re: [SLE] SUSE 9.1 - BAH!"
    To: <suse-linux-e@suse.com>
    Date: Fri, 21 May 2004 13:30:16 +0700
    
    

    I have a script that create a backup file in regular schedule (run everyday
    at 2 AM).
    But after several weeks, my harddisk is getting full.
    I want to delete older backup file that not modified/create after 30 days
    ago.

    I have used command;
    $ find ./test -mtime +30 -exec 'rm -f *'
    But it seems, the rm command is not work.

    How to do that?

    ---
    This email is protected by Clam AntiVirus and SpamAssassin
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Hartmut Meyer: "Re: [SLE] SUSE 9.1 - BAH!"

    Relevant Pages

    • find and delete older file
      ... I have a script that create a backup file in regular schedule (run everyday ... my harddisk is getting full. ... the rm command is not work. ...
      (RedHat)
    • Re: Quando Apple lascia le cose al caso...
      ... " keep a backup file ... " make all windows the same size when adding/removing windows ... " remove '=' from the list of valid filename chars. ...
      (it.comp.macintosh)
    • Re: find and delete older file
      ... > I have a script that create a backup file in regular schedule (run everyday ... my harddisk is getting full. ... the rm command is not work. ...
      (RedHat)
    • Re: [SLE] find and delete older file
      ... > I have a script that create a backup file in regular schedule (run everyday ... > I have used command; ...
      (SuSE)
    • Re: Backup question
      ... What is your command line? ... What file system does your external disk use? ... Let's assume the backup file is about 10 GBytes. ... Type these commands from a Command Prompt and report the result: ...
      (microsoft.public.windows.server.general)