site cloning or replication on same server

Author Message

nigel dodd

Wednesday 09 November 2005 8:30:37 am

There are several posts already doing something like this and there was a suggestion http://ez.no/community/forum/install_configuration/clonning_site_issue that the image system would be changed in 3.5 so that full paths were not stored in the database so I don't know if step 6 is necessary. Here is a summary of what I want to do and the steps I think are necessary to do it. Could an ez-Elder please confim.

I want to replicate or clone an existing ezpublish cms using the same installation.
I want to end up with (initially) two identical cms's so that I can leave one as a demo and work on the other.

To clone the site called dd4 and call it dd5, do this:
0 Clear the cache.
1 Copy all settings/siteaccess/dd4 files to settings/siteaccess/dd5
2 Copy all settings/siteaccess/dd4_admin files to settings/siteaccess/dd5_admin
3 In site.ini.append.php and content.ini.append.php in the new dirs change all occurrences of dd4 to dd5.
4 Copy all design/dd4 files to design/dd5
5 Copy all var/dd4 files to var/dd5
5 Go to the MySql bin directory and do mysqldump -u root dd4 > dd4.sql
6 In dd4.sql Change all occurrences of dd4 to dd5 and save as dd5.sql
7 Do mysql -u root
create database dd5;
quit;
8 Do mysql -u root dd5 < dd5.sql
9 Finally, to gain access to dd5, change all occurrences of dd4 to dd5 in settings/siteaccess/site.ini.append.php

Please feel free to correct this if I am wrong.

Ɓukasz Serwatka

Monday 21 November 2005 1:43:55 am

Hi Nigel,

Step 6 is not necessary if you will use the same VarDir name. Rest steps looks correct.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.