document the ignore file and bump to 0.1.1

This commit is contained in:
Zane C. B-H 2019-02-12 02:25:07 -06:00
parent e1caaa39a2
commit d035c365f3
3 changed files with 28 additions and 8 deletions

View File

@ -1,5 +1,8 @@
Revision history for BackupPC-Backups-Info
0.1.1 2019-02-12/02:00
-Actually document the ignore file in the POD for bin/bpc-info.
0.1.0 2019-02-12/01:00
-Fix $data not being initialized in get_raw, resulting in a warning
being printed intially during the first pass through the loop.

View File

@ -50,7 +50,7 @@ sub main::HELP_MESSAGE {
}
sub main::VERSION_MESSAGE {
print "bpc-info v. 0.1.0\n";
print "bpc-info v. 0.1.1\n";
}
#finds the age in days
@ -90,8 +90,8 @@ if (defined( $opts{i} )){
){
#chomp it and remove white space
chomp($line);
$line=~s/^\ *//;
$line=~s/\ *$//;
$line=~s/^[\ \t]*//;
$line=~s/[\t\ ]*$//;
#save it in the shash for looking up later
$ignore{$line}=1;
}
@ -229,9 +229,9 @@ bpc-info - A utility to get backup information from BackupPC in regards to backu
=head1 SYNOPSIS
cps B<-l> B<-m> <machine>
cps B<-a> <days> B<-e> <equality>
cps B<-a> <days> B<-e> <equality> B<-n> [B<-w> <warn level>] [B<-c> <critical level>]
bpc-info B<-l> B<-m> <machine>
bpc-info B<-a> <days> B<-e> <equality>
bpc-info B<-a> <days> B<-e> <equality> B<-n> [B<-w> <warn level>] [B<-c> <critical level>] [B<-i> <ignore file>]
=head1 USAGE
@ -270,6 +270,23 @@ The understood ones are listed below.
gt, >
ge, >=
=head2 B<-i> <ignore file>
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
=head2 B<-l>
Displays the last information for the machine specificied via B<-m>.

View File

@ -11,11 +11,11 @@ BackupPC::Backups::Info - Restrieves info on BackupPC backups.
=head1 VERSION
Version 0.1.0
Version 0.1.1
=cut
our $VERSION = '0.1.0';
our $VERSION = '0.1.1';
=head1 SYNOPSIS