README for plugin: socket-copy
------------------------------

This plugin uses sockets to transfer files between MySQL server and machine 
running ZRM for MySQL. 

HOWTO:

On the MySQL server machine do the following:

a) for xinetd(8):
   
   Copy /usr/share/mysql-zrm/plugins/socket/mysql-zrm-socket-client to 
   /etc/xinetd.d directory on the MySQL server. You can add more options 
   to this if you need to make it more secure. Please see the xinetd.conf(5) 
   man page for more details.

   for inetd(8):

   1. Add the following line to /etc/inetd.conf:

     mysql-zrm-socket stream tcp nowait root /usr/sbin/tcpd /usr/share/mysql-zrm/socket-client.pl

   2. Modify the tcpd files to your needs! Please see the tcpd(8) man pages 
      for more details.

   3. Add the following` line to /etc/services:

       mysql-zrm-socket  25300/tcp     # mysql-zrm-socket

b) Reload inetd or xinetd to re-read the configuration files:
     xinetd: # /etc/init.d/xinetd reload
     inetd: # /etc/init.d/inetd reload

On the machine running ZRM for MySQL do the following:

a) Modify the mysql-zrm.conf file in the relevant backup-set directory 
   (/etc/mysql-zrm/<backup set name>/mysql-zrm.conf) and add the 
   following line to the configuration file.

   copy-plugin=/usr/share/mysql-zrm/plugins/socket-copy.pl

b) Set the socket-remote-port in the above mentioned mysql-zrm.conf file 
   if a port other than 25300 has been specified in the xinetd (or inetd) 
   configuration.

   For e.g.
   socket-remote-port=35000

c) Set the remote-mysql-binpath in the above mentioned mysql-zrm.conf file 
   if mysql client binarys are installed on a different location in the 
   remote machine.

   For e.g. 
   remote-mysql-binpath=/opt/lampp

