<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> bzdbcopy.pl</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" title="style" type="text/css" href=".././../../../style.css" media="all" > </head> <body id="pod"> <p class="backlinktop"><b><a name="___top" href="../index.html" accesskey="1" title="All Documents"><<</a></b></p> <h1>bzdbcopy.pl</h1> <div class='indexgroup'> <ul class='indexList indexList1'> <li class='indexItem indexItem1'><a href='#NAME'>NAME</a> <li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a> </ul> </div> <h1><a class='u' href='#___top' title='click to go to top of document' name="NAME" >NAME</a></h1> <p>bzdbcopy.pl - Copies data from one Bugzilla database to another.</p> <h1><a class='u' href='#___top' title='click to go to top of document' name="DESCRIPTION" >DESCRIPTION</a></h1> <p>The intended use of this script is to copy data from an installation running on one DB platform to an installation running on another DB platform.</p> <p>It must be run from the directory containing your Bugzilla installation. That means if this script is in the contrib/ directory, you should be running it as: <code class="code">./contrib/bzdbcopy.pl</code></p> <p>Note: Both schemas must already exist and be <b>IDENTICAL</b>. (That is, they must have both been created/updated by the same version of checksetup.pl.) This script will <b>DESTROY ALL CURRENT DATA</b> in the target database.</p> <p>Both Schemas must be at least from Bugzilla 2.19.3, but if you're running a Bugzilla from before 2.20rc2, you'll need the patch at: <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=300311" class="podlinkurl" >http://bugzilla.mozilla.org/show_bug.cgi?id=300311</a> in order to be able to run this script.</p> <p>Before you using it, you have to correctly set all the variables in the "User-Configurable Settings" section at the top of the script. The <code class="code">SOURCE</code> settings are for the database you're copying from, and the <code class="code">TARGET</code> settings are for the database you're copying to. The <code class="code">DB_TYPE</code> is the name of a DB driver from the <em class="code">Bugzilla/DB/</em> directory.</p> <p class="backlinkbottom"><b><a name="___bottom" href="../index.html" title="All Documents"><<</a></b></p> <!-- end doc --> </body></html>