From: James W. B. <jbe...@ge...> - 2006-03-21 19:05:06
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Times New Roman">yes, all is well since I put in the fix you gave me.<br> THANKS!<br> <br> James<br> <br> <br> </font><br> Joe Zacky wrote: <blockquote cite="mid...@za..." type="cite">James, <br> <br> The 'Undefined variable ' on line 222 is just sloppy programming, it's harmless. I've always had the 'Undefined index' on line 35, haven't looked into it enough to see what the problem is. <br> <br> My incremental cleanup seems to be working okay now. I have a few days worth of incremental files. How about yours, is it working right now? <br> <br> Joe <br> <br> James W. Beauchamp wrote: <br> <blockquote type="cite">Joe: <br> I made that change and ran backup.php manually from /etc/cron.daily via php backup.php and got this output: <br> [root@polaris cron.daily]# php backup.php <br> PHP Notice: Undefined variable: result in /var/www/html/bobs/inc/class_backup.php on line 222 <br> PHP Notice: Undefined index: where in /var/www/html/bobs/inc/class_db.php on line 35 <br> Content-type: text/html <br> X-Powered-By: PHP/4.3.9 <br> Set-Cookie: PHPSESSID=882d0c7c9f64c5f9aeefe22af0920c00; path=/ <br> Expires: Thu, 19 Nov 1981 08:52:00 GMT <br> Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 <br> Pragma: no-cache <br> Incremental cleanup retention days: 30 <br> Removing incremental files older than (YYYY.DDD): 2006.046 <br> PHP Notice: Undefined variable: result in /var/www/html/bobs/inc/class_backup.php on line 222 <br> PHP Notice: Undefined index: where in /var/www/html/bobs/inc/class_db.php on line 35 <br> Incremental cleanup retention days: 30 <br> Removing incremental files older than (YYYY.DDD): 2006.046 <br> PHP Notice: Undefined variable: result in /var/www/html/bobs/inc/class_backup.php on line 222 <br> PHP Notice: Undefined index: where in /var/www/html/bobs/inc/class_db.php on line 35 <br> Incremental cleanup retention days: 30 <br> Removing incremental files older than (YYYY.DDD): 2006.046 <br> PHP Notice: Undefined variable: result in /var/www/html/bobs/inc/class_backup.php on line 222 <br> PHP Notice: Undefined index: where in /var/www/html/bobs/inc/class_db.php on line 35 <br> <br> and it keeps on going for each share. Is this related or is this something else. <br> <br> James <br> <br> <br> -----Original Message----- <br> <blockquote type="cite">From: Joe Zacky <a class="moz-txt-link-rfc2396E" href="mailto:joe...@za..."><joe...@za...></a> <br> Sent: Mar 17, 2006 3:56 PM <br> To: <a class="moz-txt-link-abbreviated" href="mailto:bob...@li...">bob...@li...</a> <br> Subject: Re: [Bobs-devel] Continued Fight with BOBS - Incrementals not saved <br> <br> Here's a fix until I can update CVS. Modify inc/class_cleanup.php <br> <br> Change this line (near the top): <br> <br> $this->old_date = date("Y", $old_stamp) . '.' . date("z", $old_stamp); <br> <br> To this: <br> <br> $this->old_date = date("Y", $old_stamp) . '.' . sprintf("%03d", date("z", $old_stamp)); <br> <br> Joe <br> <br> Joe Zacky wrote: <br> <blockquote type="cite">Oh my...you are SO right! I see the same thing happening on my system. It's because the leading zero is dropped on the day portion of the date. In your example, the code in class_cleanup.php is seeing 2006.074 as less than 2006.45. <br> <br> if(substr($file, -8) < $this->old_date){ // File is old <br> <br> I'm commenting out the cleanup in /etc/cron.daily/backup.php on my system until I fix this. <br> <br> // Delete old incremental files and dirs <br> // $cleanup->delete_files(); <br> // $cleanup->delete_dirs(); <br> <br> James, thank you SO MUCH for pursuing this problem. I should have payed more attention sooner. <br> <br> Joe <br> <br> James W. Beauchamp wrote: <br> <blockquote type="cite">Joe: <br> In continuing to find out why Bobs won't save any incrementals I discovered this in the log file: <br> <br> /etc/cron.daily/backup.php: <br> <br> PHP Notice: Undefined variable: result in /var/www/html/bobs/inc/class_backup.php on line 222 <br> PHP Notice: Undefined index: where in /var/www/html/bobs/inc/class_db.php on line 35 <br> Content-type: text/html <br> <br> Then it happily starts deleting files. It has only been running about 10 days but its deleting everything in the incremental folder. The date is correct on the machine so that's not it. <br> <br> Incremental cleanup retention days: 30 <br> Removing incremental files older than (YYYY.DDD): 2006.45 <br> Removed /backup/bobsdata/incremental/george/Quickbooks/Accounting Systems & Procedures/Quickbooks_Working_file/katyas_corp_2004A.qbw.2006.074 <br> ....... <br> <br> then I get another one of these: <br> <br> PHP Notice: Undefined variable: result in /var/www/html/bobs/inc/class_backup.php on line 222 <br> PHP Notice: Undefined index: where in /var/www/html/bobs/inc/class_db.php on line 35 <br> Incremental cleanup retention days: 30 <br> Removing incremental files older than (YYYY.DDD): 2006.45 <br> PHP Notice: Undefined variable: result in /var/www/html/bobs/inc/class_backup.php on line 222 <br> PHP Notice: Undefined index: where in /var/www/html/bobs/inc/class_db.php on line 35 <br> Incremental cleanup retention days: 30 <br> Removing incremental files older than (YYYY.DDD): 2006.45 <br> Removed /backup/bobsdata/incremental/george/operations/Engineering/DRAWINGS ARCHIVE/_Fertilizer Spreaders/Pull-Type/Single Axle/Frames/STD Clearance/9'psgd 8-bolt_2005.pdf.2006.074 <br> <br> And it starts deleting again. <br> <br> It does this for each share I'm backing up. Any idea on how tofix this? <br> <br> Thanks <br> <br> James <br> <br> <br> <br> <br> </blockquote> ------------------------------------------------------- <br> This SF.Net email is sponsored by xPML, a groundbreaking scripting language <br> that extends applications into web and mobile media. Attend the live webcast <br> and join the prime developer group breaking into this new coding territory! <br> <a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642</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> <br> </blockquote> ------------------------------------------------------- <br> This SF.Net email is sponsored by xPML, a groundbreaking scripting language <br> that extends applications into web and mobile media. Attend the live webcast <br> and join the prime developer group breaking into this new coding territory! <br> <a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642</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> </blockquote> <br> <br> <br> <br> <br> ------------------------------------------------------- <br> This SF.Net email is sponsored by xPML, a groundbreaking scripting language <br> that extends applications into web and mobile media. Attend the live webcast <br> and join the prime developer group breaking into this new coding territory! <br> <a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642</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> <br> </blockquote> <br> <br> ------------------------------------------------------- <br> This SF.Net email is sponsored by xPML, a groundbreaking scripting language <br> that extends applications into web and mobile media. Attend the live webcast <br> and join the prime developer group breaking into this new coding territory! <br> <a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642</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> <br> <pre class="moz-signature" cols="72">-- -------If you ain't the lead dog, the scenery never changes-------- BE SURE TO REMOVE THE OBVIOUS ANTI-SPAM STUFF IN MY RETURN ADDRESS James W. Beauchamp, P.E. Global Environmental Solutions, Inc. 2121 Newmarket Pkwy. Suite 140 Marietta, Georgia 30067 Phone - 770-690-9552 ext. 227 Mobile - 404-290-9453 Fax - 770-690-9529 Email - jbeauchamp-at-gesinc.com</pre> </body> </html> |