From: Joe Z. <jz...@co...> - 2004-05-23 21:49:35
|
I've committed the incremental file cleanup to cvs. It uses a new class "class_cleanup.php" that's based on class_db.php and uses it's variables and a couple of it's functions. The output of the incremental cleanup lists all the files and directories that get deleted but it goes to standard output instead of bobs.log, which for the cron job "backup.php" ends up in root's email. We may want to make a change to redirect the output of backup.php to bobs.log. Here's how it works: o backup.php creates a new cleanup object. o backup.php runs cleanup->delete_files() and cleanup->delete_dirs(). o delete_files() reads through the bobs database and deletes files older than the calculated days to keep. It also removes the records from the database. o delete_dirs() reads through the bobs directory database and removes any empty directories and deletes the record from the database. I hope some of you will update your bobs installation from cvs, try this out, and let me know how it works before we create a new release. Cheers, Joe |