BackupPC-users

Re: [BackupPC-users] Job details from command line for stats

2009-06-18 19:09:15
Subject: Re: [BackupPC-users] Job details from command line for stats
From: Craig Barratt <cbarratt AT users.sourceforge DOT net>
To: Hereward Cooper <hcooper AT thepixiepeople.co DOT uk>
Date: Thu, 18 Jun 2009 16:04:22 -0700
Hereward writes:

> I'm looking for a way of extract details of backuppc jobs so that I
> can parse them and produce some graphs of usage and general activity.

For current running jobs, host status, server info (pool stats etc)
and command queues you can do this:

    bin/BackupPC_serverMesg status jobs
    bin/BackupPC_serverMesg status hosts
    bin/BackupPC_serverMesg status info
    bin/BackupPC_serverMesg status queues

You will get back a text version of a perl hash that you can eval()
inside perl.  Otherwise you can parse it using a language of your
choice.

As other people mentioned, for information about completed backups
you should read and parse the backups file for each host.

Craig

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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/

<Prev in Thread] Current Thread [Next in Thread>