Backup and restore eZ publish

Author Message

Joël LEGER

Thursday 21 February 2008 12:10:19 am

Hi,

It's a common topic but i didn't find a clear explanation, i want to move an eZ install and it's content to another site.
If someone know a process ?

thx

Felix Laate

Thursday 21 February 2008 12:47:16 am

Hi Jo,

this is how I do it:

1) make a dump of your database

mysqldump -u myuser -p mydatabase > mydatabase.sql

2) add the directories settings/override, settings/siteaccess, design/_MY_DESIGN_, var/_MY_SITE_ and any extensions you may have added to an archive

tar cvfz files.tar.gz /_PATH_TO_EZP_/settings/override /_PATH_TO_EZP_/settings/siteaccess /_PATH_TO_EZP_/design/_MY_DESIGN_  /_PATH_TO_EZP_/var/_MY_SITE_

3) on the other host, download and extract the version of ezp you use, e.g.

wget http://ez.no/content/download/218812/1467959/file/ezpublish-4.0.0-gpl.tar.gz
tar zxvf  ezpublish-4.0.0-gpl.tar.gz

4) change to the new ezp-directory and extract your archive

tar zxvf files.tar.gz

5) create a new database, grant the appropriate privileges and insert the dump

mysql -u myuser -p newdatabase < mydatabase.sql

Note that if the new database has a different name from the old, you need to change the site.ini.append.php-files og your siteacceses.

Make sure the rights are set correctly to filestructure (e.g. by running the infamous bin/modfix.sh script.

Ready.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Joël LEGER

Thursday 21 February 2008 1:10:12 am

looks pretty clear!

thx Felix

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 18 2025 21:06:57
Script start
Timing: Jan 18 2025 21:06:57
Module start 'layout'
Timing: Jan 18 2025 21:06:57
Module start 'content'
Timing: Jan 18 2025 21:06:57
Module end 'content'
Timing: Jan 18 2025 21:06:57
Script end

Main resources:

Total runtime0.0145 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0313152.6406
Module start 'layout' 0.00530.0030 740.671939.4766
Module start 'content' 0.00830.0043 780.148489.4766
Module end 'content' 0.01260.0019 869.625034.3047
Script end 0.0145  903.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.5446140.0002
Check MTime0.00117.5701140.0001
Mysql Total
Database connection0.00085.855410.0008
Mysqli_queries0.002416.347530.0008
Looping result0.00000.103510.0000
Template Total0.001611.110.0016
Template load0.00085.574510.0008
Template processing0.00085.490810.0008
Override
Cache load0.00064.162010.0006
General
dbfile0.00032.324180.0000
String conversion0.00000.049340.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