From: James W. B. <jbe...@mi...> - 2005-04-21 15:16:40
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Times New Roman">Joe:<br> I've installed the cvs version of bobs and have manually run the backup.php script. I now see many screenfulls of this:</font><br> <tt></tt><br> <br> <b>Warning</b>: unlink() failed (Is a directory) in <b>/var/www/html/bobs/inc/class_cleanup.php</b> on line <b>95</b><br /><br> Unable to remove /backup/bobsdata/incremental/main/homedirs//<br> <br /><br> <b>Fatal error</b>: Maximum execution time of 30 seconds exceeded in <b>/var/www/html/bobs/inc/class_cleanup.php</b> on line <b>89</b><br /><br> <br> It's failing to remove something. Is this just a one time thing or an indication of something else?<br> <br> Thanks<br> James<br> <br> Joe Zacky wrote: <blockquote cite="mid...@za..." type="cite">James W. Beauchamp wrote: <br> <br> <blockquote type="cite">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. </blockquote> <br> My following answers relate to the cvs version of bobs 0.6.2. There are lots of fixes and enhancements there. <br> <br> <blockquote type="cite">What controls this feature? <br> </blockquote> <br> /etc/cron.daily/backup.php runs delete_files() in class_cleanup.php. <br> <br> <blockquote type="cite"> Is it part of the nightly cron? <br> </blockquote> <br> Yes, /etc/cron.daily. <br> <br> <blockquote type="cite">How can I trouble shoot this and see why its not honoring the file retention time limit? <br> </blockquote> <br> 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: <br> print "Incremental cleanup retention days: $retention_days\n"; <br> <br> 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. <br> <br> <blockquote type="cite"><br> Thanks <br> <br> James <br> </blockquote> <br> It's possible a bug in rsync may be related to your problem. Or it may have nothing to do with it. <br> <br> 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: <a class="moz-txt-link-freetext" href="https://bugzilla.samba.org/show_bug.cgi?id=1412">https://bugzilla.samba.org/show_bug.cgi?id=1412</a> <br> <br> 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 <br> <br> 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. <br> <br> Regardless, there are several fixes and enhancements in the cvs version, mostly for logging and email notification, plus the backup templates are easily configurable. <br> <br> Hope that helps. <br> <br> Joe Zacky <br> <br> <br> ------------------------------------------------------- <br> This SF.Net email is sponsored by: New Crystal Reports XI. <br> Version 11 adds new functionality designed to reduce time involved in <br> creating, integrating, and deploying reporting solutions. Free runtime info, <br> new features, or free trial, at: <a class="moz-txt-link-freetext" href="http://www.businessobjects.com/devxi/728">http://www.businessobjects.com/devxi/728</a> <br> _______________________________________________ <br> Bobs-devel mailing list <br> <a class="moz-txt-link-abbreviated" href="mailto:Bob...@li...">Bob...@li...</a> <br> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/bobs-devel">https://lists.sourceforge.net/lists/listinfo/bobs-devel</a> <br> <br> </blockquote> </body> </html> |