purging old backup suggestions
I got backups coming each night on my backup server. I want to purge old backup files so they don't fill up the disk space.
My backup files don't have any universal naming convention, only they are all either .gz or tar.gz files. So a file name could be "file-date.tgz". I was wondering how will I go about writing a script that will purge old backups?
I was thinking of using find where it will purge any files older than 20 days old.
Is there any other easy way I could purge old backups or am I left with find only?
Last edited by noir911; 10-25-2006 at 06:07 AM.
|