# Delete local backups older than 5 days
  find ${BACKUP_DIR} -name ${BACKUP_PREFIX}_'*' -mtime +5 -exec rm -f {} \;

this might work

-steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dan de Haan
Sent: Tuesday, November 26, 2002 11:57 AM
To: [EMAIL PROTECTED]
Subject: Shell Scripting Question.


I have a simple shell script that runs from cron and makes a backup of some
filed to another PC via NFS.  I want to have it automatically delete old
backups form the NFS server.  How would I do that, is there a delete files
older then N days command?

        -Dan



-- 
Psyche-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/psyche-list



-- 
Psyche-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/psyche-list

Reply via email to