bpc-info - A utility to get backup information from BackupPC in regards to backups.
bpc-info -l -m <machine> bpc-info -a <days> -e <equality> bpc-info -a <days> -e <equality> -n [-w <warn level>] [-c <critical level>] [-i <ignore file>]
Either -a or -l need to be given.
With -n, -a may be used as a nagios check and the output will be a simplified version formated as such.
Deminal days after the last backup to used for searching. The comparison equality is set via -e.
A value of "-1" or the like may be given to display all machines and backup ages.
The number of machines needing to match -a when -n is used for it to be considered critical.
Either the symbol or letter equivalent may be used.
This is evaluated as below.
$backup_age $equality $opts{a}
The understood ones are listed below.
e, = lt, < le, <= gt, > ge, >=
This is a file that contains the hostnames to be ignored.
Lines starting with # are ignored.
White space at the start or end of a line is removed.
There can be one hostname per line.
Empty lines are ignored.
# a comment foo.bar # another comment foo.bar
Displays the last information for the machine specificied via -m.
The machine to operate on in terms of backups.
Operate in Nagios mode.
When combined with -a can be used for alerting if to many backups are older than a specific age.
The number of machines needing to match -a when -n is used for it to throw a warning.
To install BackupPC::Backups::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm BackupPC::Backups::Info
CPAN shell
perl -MCPAN -e shell install BackupPC::Backups::Info
For more information on module installation, please visit the detailed CPAN module installation guide.