Add this line into crontab, change /home2/backup with your own folder and 7 with numbers of days.
@weekly find /home2/backup -mtime +7 -type d -depth -exec rm -r {} \;
Posted in Web and System Administrator | No Comments »