Zmanda recovery manager for MySQL is a backup and recovery manager for 
MySQL database.

Zmanda recovery manager for MySQL is documented in 
http://mysqlbackup.zmanda.com/

INSTALLATION 

MYSQL ZRM is available as RPM, Debian or Solaris package format 
as well as tar ball.  

INSTALLATION DEPENDENCIES

MySQL ZRM uses perl. It does not depend on a specific version of Perl.
Perl XML parser packages and MySQL perl interface packages 
(DBD::MySQL and DBI) should also be installed. These perl packages
can be obtained from the distribution (using apt-get or yum) or from
CPAN repository (http://www.cpan.org).

Example: Following command to installs DBI perl package from CPAN. Developer tools
are required to install from CPAN
 # perl -MCPAN -e 'install DBI'

INSTALLATION USING RPM

1. Download the MySQL ZRM rpm from the Zmanda downloads page 
   (http://www.zmanda.com/download-zrm.php")

2. Install RPM using rpm(8) command. This command should be run as 
   superuser.
   A rpm command example installing MySQL ZRM 2.2 :

   # /bin/rpm -ivh MySQL-zrm-2.2-1.noarch.rpm

Note: MySQL-zrm-socket-server rpm should be installed on MySQL server if
you are using socket copy plugin to backup remote MySQL servers.

INSTALLATION USING DEBIAN PACKAGES

1. Debian packages are available from Zmanda downloads page.  There are two 
   debian packages - mysql-zrm package must be installed on the machine that 
   will be doing backups and mysql-zrm-socket-server package must be installed 
   on the MySQL servers if the MySQL server is being backed up remotely using 
   socket copy plugin. 

2. Install using dpkg(8) command: 

   # dpkg -i mysql-zrm_2.2_all.deb
   Unpacking mysql-zrm (from mysql-zrm_2.2_all.deb) ...
   Setting up mysql-zrm (2.2) ...

INSTALLATION USING TAR BALL

1. Download the MySQL ZRM tar ball from Zmanda downloads page
   (http://www.zmanda.com/downloads.html)

2. Unzip the tar ball using gunzip(1) command. Example:
   $ gunzip MySQL-zrm-2.2-release.tar.gz

4. Extract using tar(1) command. The files will be extracted with respect to
   current directory. Extracting files in the root directory ("/") will
   install MySQL ZRM. It is recommended that the files be extracted in a
   temporary directory because the directory locations used by tar ball may
   not be compatible with your distribution.
   $ mkdir /usr/tmp/MySQL-zrm; cd /usr/tmp/MySQL-zrm
   $ tar xvf MySQL-zrm-2.2-release.tar

FIRST TIME USER

MySQL ZRM wiki provides Quick start example for configuring MySQL ZRM 
for a simple configuration. Please see 
http://mysqlbackup.zmanda.com/index.php/Quick_Start_Example

CONFIGURATION

MySQL ZRM uses configuration files stored in /etc/mysql-zrm directory. 
Template mysql-zrm configuration file is available at 
/etc/mysql-zrm/mysql-zrm.conf

If you are planning to use LVM snapshots as a backup method for MySQL
databases, you should configure MySQL database to store its data, log 
and indexes in LVM2 logical volumes.  Use of LVM logical volumes is 
not necessary for MySQL ZRM.

For more information on configuration file and parameters, please read 
MySQL ZRM documentation in MySQL ZRM wiki 
(http://wiki.zmanda.com/index.php/MySQL_Backup_and_Recovery)
