Skip to content

Commit

Permalink
Add baseline POD to backup.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Mar 16, 2010
1 parent 6640d8e commit 9250085
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions wre/sbin/backup.pl
Expand Up @@ -16,9 +16,18 @@
use WRE::Config;
use WRE::File;
use WRE::Mysql;
use Getopt::Long ();
use Pod::Usage ();

my $config = WRE::Config->new;
my $util = WRE::File->new(wreConfig => $config);
my $help;

Getopt::Long::GetOptions(
'help'=>\$help
);

Pod::Usage::pod2usage( verbose => 2 ) if $help;

# are backups enabled
exit unless $config->get("backup/enabled");
Expand Down Expand Up @@ -272,4 +281,39 @@ sub runExternalScripts {
}


__END__
=head1 NAME
backup - Backup script for a WebGUI instance
=head1 SYNOPSIS
backup.pl [all options from configuration files]
backup.pl --help
=head1 DESCRIPTION
This wre script backups all files and databases according to the wre.conf and
backup.exclude files. This script is advised to be run as a root owned cronjob.
Please see L<wre.conf.pod> for the backup options.
=head2 backup.exclude
A file that contains patterns of file locations and filenames that should not be backed up. This is used by the tar --exclude-from option.
=over 4
=item B<--help>
Shows this documentation, then exits.
=back
=head1 AUTHOR
Copyright 2001-2009 Plain Black Corporation.
=cut

0 comments on commit 9250085

Please sign in to comment.