Changes

Jump to: navigation, search

stoney backup: Server set-up

2,103 bytes added, 13:49, 12 June 2014
/* scheduleWarning.pl */
As the backup clients distributed by stepping stone GmbH upload metadata XML before (scheduling information and start time) and after (end time and backup status) the actual backup, the scheduleWarning.pl script is able to verify whether or not a planned backup has been executed and whether or not the backup was successful.
 
* Pod documentation
<pre>
NAME
scheduleWarning.pl
 
DESCRIPTION
This script tests whether a planed backup was successful or not. There
are two different typs of failure.
 
1. The Backup did not start
The first type of error is that a backup is scheduled for YYYY-MM-DD
at HH:MM, but the backup don't start at this specified time. A
possible reason could be that the computer was shut down.
 
2.The backup was not successful
The second type of error is that a backup started as scheduled but
did not finish successfully. There are different reasons for this
error.
 
If a backup wasn't successful the script checks which type of error
occured. It reads the XML files which are stored on the server and
compares the given information. If the error is detected, the script
stats the norification process with the information of the error.
 
If a user has more than one computer backed-up, the script tests one
computer after the other. The mail(s) sent by the programm also
contain(s) the information which computer is affected.
 
OPTION
-U uid
The -U option is required to run the script, it indicates for which
uid the script is executed.
 
USAGE
scheduleWarning.pl [-U user]
 
CREATED
2010-04-14 created Pat Kläy <pat.klaey@stepping-stone.ch>
 
VERSION
2010-04-14 v0.01, created pkl
2010-08-24 v0.02, modified pkl
New using Net::SMTP::TLS to send mails
 
2013-09-13 v0.03, modified pat.klaey@stepping-stone.ch
Changes to use the script with the new backup infrastructure (read
more information from LDAP, use Notification lib to send mails)
 
USES
strict;
warnings;
XML::Simple;
Config::IniFiles;
XML::Validator::Schema;
Date::Calc qw(:all);
Date::Manip;
Schedule::Cron::Events;
DateTime::Format::Strptime;
Sys::Syslog;
XML::SAX::ParserFactory;
Getopt::Std;
MIME::Base64;
Authen::SASL;
Net::LDAPS;
Net::SMTP::TLS;
Cwd 'abs_path';
PerlUtil::Logging;
PerlUtil::LDAPUtil;
</pre>
=== Configuration ===
486
edits