Skip to content
notxarb edited this page Sep 14, 2010 · 2 revisions

Requirements:

  • Perl
  • Perl Modules:
    • DBI
    • DBD::mysql
    • config::IniFiles
  • Access to database server(s):
    • User name
    • Password
    • Server address
    • Database name
    • Tables to clone (optional)
  • Access to folders:
    • /etc/
    • /usr/local/sbin/
    • A temporary folder that is accessible to both server (if cloning across the network) or just a temporary folder

The Perl modules can often be found through a package manager, like yum or apt-get. If not, they can be installed from CPAN.

Files within this project:

  1. mysql-quick-clone.conf
  2. mysql-quick-clone.pl
  3. mysql-quick-clone.conf.8
  4. mysql-quick-clone.pl.8

Installation:

After downloading the project, copy the files to the following locations:
mysql-quick-clone.conf → /etc/
mysql-quick-clone.pl → /usr/local/sbin/
mysql-quick-clone.conf.8 → /usr/local/share/man/man8/
mysql-quick-clone.pl.8 → /usr/local/share/man/man8/

The included install.sh will perform these comands. It is important that this be done with administrator (root) access.

Verify install

The man pages should be accessible by running:

  1. man mysql-quick-clone.pl
  2. man mysql-quick-clone.conf

The main program should run with the following command:

/usr/local/sbin/mysql-quick-clone.pl

and it should return:

“Please input all required arguments”

Clone this wiki locally