packages: bacula-backup-mysql/bacula-backup-mysql - license and pod blocks

glen glen at pld-linux.org
Tue Jan 5 08:40:08 CET 2010


Author: glen                         Date: Tue Jan  5 07:40:08 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- license and pod blocks

---- Files affected:
packages/bacula-backup-mysql:
   bacula-backup-mysql (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/bacula-backup-mysql/bacula-backup-mysql
diff -u packages/bacula-backup-mysql/bacula-backup-mysql:1.6 packages/bacula-backup-mysql/bacula-backup-mysql:1.7
--- packages/bacula-backup-mysql/bacula-backup-mysql:1.6	Tue Jun 16 17:53:30 2009
+++ packages/bacula-backup-mysql/bacula-backup-mysql	Tue Jan  5 08:40:02 2010
@@ -1,4 +1,21 @@
 #!/usr/bin/perl -ws
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to:
+#
+#  Free Software Foundation, Inc.
+#  59 Temple Place - Suite 330
+#  Boston, MA 02111-1307, USA.
+
 # Rudimentary switch parsing. Must be in main package.
 our $cleanup;
 
@@ -50,7 +67,7 @@
 	print "<<< $cluster\n";
 }
 
-# 
+#
 # Usage: mysqlhotcopy $CLUSTER $DATABASE $USERNAME $PASSWORD $SOCKET
 #
 sub mysqlhotcopy {
@@ -177,3 +194,35 @@
 
 	return $h->{$section}->{$key};
 }
+
+
+__END__
+
+=head1 NAME
+
+bacula-backup-mysql - A hook for Bacula to backup mysql databases using mysqlhotcopy.
+
+=head1 SYNOPSIS
+
+  Job {
+    Name = "example.org-mysql"
+    ...
+     # This prepares the backup
+    Client Run Before Job = "/usr/sbin/bacula-backup-mysql"
+    # This deletes the copy of the catalog
+    Client Run After Job = "/usr/sbin/bacula-backup-mysql -cleanup"
+  }
+
+=head1 DESCRIPTION
+
+This is a script to be setup as C<Client Run Before Job> in Bacula.
+
+=head1 AUTHOR
+
+Copyright (C) 2009-2010, Elan Ruusamäe <glen at delfi.ee>
+
+=head1 SEE ALSO
+
+http://www.bacula.org/
+
+=cut
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/bacula-backup-mysql/bacula-backup-mysql?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list