From: Peter L. <l-b...@pg...> - 2004-04-20 23:18:27
|
Hi, I'm currently using BackupPC 2.0.2 with cygwin rsyncd to perform backups of Windows hosts. Using the BackupPC_Admin interface, if I click on the host on the left hand side, then click on one of the "Errors" hyperlinks under "Xfer Error Summary", taking me to http://servername/cgi-bin/BackupPC_Admin?action=view&type=XferErr&num=5&host=hostname I see the log in its entireity, and it's very hard to pick out the errors by eye. I've identified the part of the admin cgi which strips out the non-error lines, and added in 7 more regexps which appear to filter out the necessary non-error lines, to keep the errors preserved. I've included a diff -u of the relevant section below. Can anyone see any problems with the change I've made? Is it likely to strip out any errors by accident? [I've had a quick look at the 2.1.0beta0 module and this section of code looks the same, although I haven't tried executing it. Apologies if I'm asking about something which has already been changed] Thankyou very much to all the developers, I think BackupPC is an excellent piece of software. Peter ---------------------------------------------------------------------------- ---------------------------- --- backuppcdistribution/BackupPC-2.0.2/cgi-bin/BackupPC_Admin 2003-10-07 07:55:49.000000000 +0100 +++ /var/www/cgi-bin/BackupPC_Admin 2004-04-14 12:45:08.000000000 +0100 @@ -435,6 +435,13 @@ last; } if ( /smb: \\>/ + || /^\s*create d / #following 7 lines added by pgl + || /^\s*pool / + || /^\s*create / + || /^\s*same / + || /^\s*delete / + || /^\s*delete d / + || /^\s*pool l / || /^\s*(\d+) \(\s*\d+\.\d kb\/s\) (.*)$/ || /^tar: dumped \d+ files/ || /^\s*added interface/i |