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.

eZ debug

Timing: Jan 31 2025 03:35:55
Script start
Timing: Jan 31 2025 03:35:55
Module start 'layout'
Timing: Jan 31 2025 03:35:55
Module start 'content'
Timing: Jan 31 2025 03:35:55
Module end 'content'
Timing: Jan 31 2025 03:35:55
Script end

Main resources:

Total runtime0.0354 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.3828151.2422
Module start 'layout' 0.00470.0033 739.6250220.7344
Module start 'content' 0.00810.0256 960.3594997.8516
Module end 'content' 0.03370.0017 1,958.210933.9922
Script end 0.0354  1,992.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00267.2264140.0002
Check MTime0.00102.8615140.0001
Mysql Total
Database connection0.00082.323510.0008
Mysqli_queries0.00215.882530.0007
Looping result0.00000.025610.0000
Template Total0.00123.410.0012
Template load0.00092.581410.0009
Template processing0.00030.793810.0003
Override
Cache load0.00061.793010.0006
General
dbfile0.010429.312980.0013
String conversion0.00000.013540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs