From: Joe Z. <joe...@za...> - 2005-04-20 16:54:26
|
James W. Beauchamp wrote: > Hi all. I'm running 0.6.2 BOBS and I am having a problem with files > not being deleted that are over the retention time (30 days) that I > specified in the share setup. My following answers relate to the cvs version of bobs 0.6.2. There are lots of fixes and enhancements there. > What controls this feature? /etc/cron.daily/backup.php runs delete_files() in class_cleanup.php. > Is it part of the nightly cron? Yes, /etc/cron.daily. > How can I trouble shoot this and see why its not honoring the file > retention time limit? Running /etc/cron.daily/backup.php manually should tell you if it even gets to the cleanup portion. There is an output line just before cleanup: print "Incremental cleanup retention days: $retention_days\n"; You could run /etc/cron.daily/backup.php manually and put "echo" or "print" commands in class_cleanup.php to figure out what's going on. > > Thanks > > James It's possible a bug in rsync may be related to your problem. Or it may have nothing to do with it. I routinely experience problems with a bug in rsync version 2.6.2 where it tries to create a directory that already exists. Rsync fails and my incremental files are not all deleted and no files have been backed up. I have to manually run the backup again from the bobs menu until the incrementals are cleaned up. The bug has been fixed but it requires a patch or upgrade to rsync 2.6.3. The bug is described here: https://bugzilla.samba.org/show_bug.cgi?id=1412 If you're using the latest cvs version of bobs, you can look in bobs.log. for " make_bak_dir mkdir "<some file name>" failed: File exists A work around is to add the option --delete-after to the rsync commands in the bobs template directory, usually /var/www/html/bobs/inc/templates or inc/templates/ from the directory where you compiled bobs. This won't help delete the incremental files, but it will make sure your files get backed up before deleting the incrementals. Regardless, there are several fixes and enhancements in the cvs version, mostly for logging and email notification, plus the backup templates are easily configurable. Hope that helps. Joe Zacky |