Why does'nt this work?
Im using openSuse.
I have 3 directiories that I want to empty so theres no files older than 10 days in there
/backups/moodlesoftwere/moodlesoftwere/2009/Feb
/backups/mysql_backups/moodle/2009/Feb
/backups/moodledata/moodledata/2009/Feb
TIA
Code:
#/bin/sh
BACKUP_DIR="/backups"
DAYS_TO_RETAIN=10
find $BACKUP_DIR -maxdepth 1 -type f -ctime +$DAYS_TO_RETAIN -delete
Im using openSuse.
I have 3 directiories that I want to empty so theres no files older than 10 days in there
/backups/moodlesoftwere/moodlesoftwere/2009/Feb
/backups/mysql_backups/moodle/2009/Feb
/backups/moodledata/moodledata/2009/Feb
TIA