Hello,

For facilitating managing of our backuppc servers, We add count number of files in full backup on the summary page. It's permit to see servers witch uses the most inode, and detected potential problem of directory witch have to be excluded of backups.

I just modified Summary CGI file and lang files to do that. I attach 3 patchs. I think it's could be great to integrate this feature on core project.

Thank's

--
Benjamin Renard                  -                   Easter-eggs
44-46 rue de l'Ouest  -  75014 Paris   -   France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37     -    Fax: +33 (0) 1 43 35 00 76
mailto:bren...@easter-eggs.com   -    http://www.easter-eggs.com
--- old/en.pm	2012-12-21 19:40:41.000000000 +0100
+++ new/en.pm	2013-06-06 12:10:20.000000000 +0200
@@ -173,6 +173,7 @@
     <td align="center"> #Full </td>
     <td align="center"> Full Age (days) </td>
     <td align="center"> Full Size (GB) </td>
+    <td align="center"> Full nb files (GB) </td>
     <td align="center"> Speed (MB/s) </td>
     <td align="center"> #Incr </td>
     <td align="center"> Incr Age/days </td>
--- old/fr.pm	2012-12-21 19:40:41.000000000 +0100
+++ new/fr.pm	2013-06-06 12:07:48.000000000 +0200
@@ -153,6 +153,7 @@
     <td align="center"> Nb complètes </td>
     <td align="center"> Complètes Âge (jours) </td>
     <td align="center"> Complètes Taille (Go) </td>
+    <td align="center"> Complètes Nb fichiers </td>
     <td align="center"> Vitesse (Mo/s) </td>
     <td align="center"> Nb incrémentielles </td>
     <td align="center"> Incrémentielles Âge (jours) </td>
--- old/Summary.pm	2012-12-21 19:40:41.000000000 +0100
+++ new/Summary.pm	2013-06-06 12:26:16.563248147 +0200
@@ -55,6 +55,7 @@
         my @Backups = $bpc->BackupInfoRead($host);
         my $fullCnt = $incrCnt = 0;
         my $fullAge = $incrAge = $lastAge = -1;
+        my $fullNbFiles = 0;
 
         $bpc->ConfigRead($host);
         %Conf = $bpc->Conf();
@@ -71,6 +72,9 @@
                     $fullDur  = $Backups[$i]{endTime} - $Backups[$i]{startTime};
                 }
                 $fullSizeTot += $Backups[$i]{size} / (1024 * 1024);
+		if ( $Backups[$i]{nFiles} > $fullNbFiles ) {
+                    $fullNbFiles = $Backups[$i]{nFiles};
+                }
             } else {
                 $incrCnt++;
                 if ( $incrAge < 0 || $Backups[$i]{startTime} > $incrAge ) {
@@ -143,6 +147,7 @@
     <td align="center" class="border">$fullCnt</td>
     <td align="center" class="border">$fullAge</td>
     <td align="center" class="border">$fullSize</td>
+    <td align="center" class="border">$fullNbFiles</td>
     <td align="center" class="border">$fullRate</td>
     <td align="center" class="border">$incrCnt</td>
     <td align="center" class="border">$incrAge</td>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
BackupPC-devel mailing list
BackupPC-devel@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to