Full System Backup auto delete older backups

fishyghost

Verified User
Joined
Oct 29, 2006
Messages
5
Location
United Kingdom
If the Full System Backup system could delete older backups, say ones older than the last two or three made it would make life easier... At the moment we have to clear out our backups folder regularly otherwise the system will fill itself up with backups.....
 
If you can't get that one to work (I couldn't), here's mine:

Create a crontab with this code (probably need to be root):

Code:
find /backup -mtime +7 -type d -depth -exec rm -r {} \;

where "/backup" is the directory the backups are in and "7" is the number of days to keep the backups before they're deleted.
 
Back
Top