Share » Forums » Install & configuration » Backup and restore eZ publish

Backup and restore eZ publish

Backup and restore eZ publish

Thursday 21 February 2008 12:10:19 am - 2 replies

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu