File: backupfailure.pm

package info (click to toggle)
mylvmbackup 0.13-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 244 kB
  • sloc: perl: 1,465; sh: 149; makefile: 126
file content (23 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl -w

package backupfailure;

use strict;

use Date::Format;
use Sys::Hostname;

sub execute()
{
	my ($class, $dbh, $msg) = @_;

	my $hostname = hostname;
	my $today = time2str("%C", time);
	my $content = "Date: $today\nHost: $hostname\n";

	# send an email here...or something..

	return 1;
}

1;