<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.commander4j.com/index.php?action=history&amp;feed=atom&amp;title=Clone4j</id>
	<title>Clone4j - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.commander4j.com/index.php?action=history&amp;feed=atom&amp;title=Clone4j"/>
	<link rel="alternate" type="text/html" href="https://wiki.commander4j.com/index.php?title=Clone4j&amp;action=history"/>
	<updated>2026-04-27T23:03:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.commander4j.com/index.php?title=Clone4j&amp;diff=1817&amp;oldid=prev</id>
		<title>Dgarratt: Updated by push_wiki.py</title>
		<link rel="alternate" type="text/html" href="https://wiki.commander4j.com/index.php?title=Clone4j&amp;diff=1817&amp;oldid=prev"/>
		<updated>2026-04-05T16:01:21Z</updated>

		<summary type="html">&lt;p&gt;Updated by push_wiki.py&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Clone4j&amp;#039;&amp;#039;&amp;#039; is a database copy utility included with Commander4j. It copies the entire contents of one Commander4j database into another, and supports copying between different database types — for example from SQL Server to MySQL or from MySQL to Oracle.&lt;br /&gt;
&lt;br /&gt;
Clone4j is launched from the &amp;lt;code&amp;gt;Clone4j.exe&amp;lt;/code&amp;gt; executable in the Commander4j installation directory. It requires administrator privileges (the launcher requests elevation on Windows).&lt;br /&gt;
&lt;br /&gt;
== When to Use Clone4j ==&lt;br /&gt;
&lt;br /&gt;
Typical uses include:&lt;br /&gt;
&lt;br /&gt;
* Copying a live production database to a test or development environment&lt;br /&gt;
* Migrating data when moving a site from one database platform to another&lt;br /&gt;
* Creating a full backup copy of the database in a different database instance&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
Before running Clone4j:&lt;br /&gt;
&lt;br /&gt;
* Both the source and destination databases must be defined as hosts in &amp;lt;code&amp;gt;hosts.xml&amp;lt;/code&amp;gt; (use [[Setup4j]] to configure host connections)&lt;br /&gt;
* Both databases must be on the &amp;#039;&amp;#039;&amp;#039;same schema version&amp;#039;&amp;#039;&amp;#039; — Clone4j will refuse to proceed if the schema versions differ&lt;br /&gt;
* Both databases must have the same number of tables — they must be on identical schema revisions with no partial upgrades applied&lt;br /&gt;
* The destination database will have &amp;#039;&amp;#039;&amp;#039;all its data erased&amp;#039;&amp;#039;&amp;#039; and replaced with the source data&lt;br /&gt;
&lt;br /&gt;
== Using Clone4j ==&lt;br /&gt;
&lt;br /&gt;
# Launch &amp;lt;code&amp;gt;Clone4j.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
# The window shows two lists populated from &amp;lt;code&amp;gt;hosts.xml&amp;lt;/code&amp;gt; — select the &amp;#039;&amp;#039;&amp;#039;source&amp;#039;&amp;#039;&amp;#039; database on the left and the &amp;#039;&amp;#039;&amp;#039;destination&amp;#039;&amp;#039;&amp;#039; database on the right&lt;br /&gt;
# Click &amp;#039;&amp;#039;&amp;#039;Clone Database&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# A confirmation prompt warns that all data in the destination will be erased — confirm to proceed&lt;br /&gt;
# Clone4j copies every table in sequence, updating a progress bar as it works&lt;br /&gt;
# On completion, the status bar reports the outcome&lt;br /&gt;
&lt;br /&gt;
The Clone button is only enabled when both a source and a destination have been selected and they are not the same host.&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
&lt;br /&gt;
* Clone4j copies data row by row — it is not a structural migration tool. Both databases must already have matching schemas (same schema version, same table count).&lt;br /&gt;
* It is not designed for continuous replication. It is a one-time full copy.&lt;br /&gt;
* Large databases may take several minutes to clone depending on row count and network speed.&lt;br /&gt;
&lt;br /&gt;
See also: [[Setup4j]], [[Installation]], [[Upgrading]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commander4j]]&lt;/div&gt;</summary>
		<author><name>Dgarratt</name></author>
	</entry>
</feed>