BackupPC-users

Re: [BackupPC-users] BackupPC-Visualize - visual plot of host backup durations

2013-02-02 22:24:49
Subject: Re: [BackupPC-users] BackupPC-Visualize - visual plot of host backup durations
From: The Lunatic <lunatic AT lhaven DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Sat, 02 Feb 2013 20:19:05 -0600

On 01/28/2013 11:46, Carl Cravens wrote:
> I've written a little tool to help analyze BackupPC "scheduling" that I 
> thought others might find useful.  It is meant to generate plots that can be 
> viewed from the web, but it's just as easily used from the command line.
> 
> https://github.com/ravenx99/backuppc-visualize/
> 

This is interesting....though the sort by host doesn't work the way I
expect....so I changed it

--- bpcviz-gatherdata.orig      2013-02-02 18:59:43.227136515 -0600
+++ bpcviz-gatherdata   2013-02-02 19:51:38.473136369 -0600
@@ -104,7 +104,7 @@
 if ( $sorttype eq 'time' ) {
     @data = sort { $b->[3] <=> $a->[3] } @data;
 } else {
-    @data = sort { $b->[0] <=> $a->[0] } @data;
+    @data = sort { $a->[0] cmp $b->[0] } @data;
 }

I think hacked something up in a small html page that shows the image,
and mod'd CGI/View.pm to show additional types using the same process as
docs.

I opted to add the extra links this way, because I wanted the plots to
be considered internal to the BackupPC system and work whether the
viewer is going direct or through a reverse proxy....

Host sorting is helpful, because on some of my bigger hosts, I break up
what is backed up and then use lockfile so that some of the portions are
mutually exclusive.  And, now I can see the impact of a big full....

-- 
  Name: Lawrence "The Dreamer" Chen        Email: lunatic AT lhaven DOT net
 Snail: 1530 College Ave, A5                 URL: http://www.lhaven.net
        Manhattan, KS 66502-2768
  Blog: http://lawrencechen.net            Phone: 785-789-4132


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/