Path

ez.no / ezpublish / documentation / configuration / backup & restore / move to new provider


Move to new provider

These documentation pages are no longer maintained. Please visit the new documentation site.

This is just a list with things to do/remember if you want to move to another server, operating system or provider.

Do a fresh install

Start by doing a fresh install on the new server. Check if the site runs as expected and move on to the next step.

Move the database

MySQL

The MySQL site has some information on creating a dump file from the root: Dumping Table Structure and Data

shell> mysqldump --opt EzPublish_Database > dump_file.sql

or if you want to just backup your data while you cms is running try the following, although its better if you want to restore quickly, it does remove everything that existed before.

mysqldump -uxxx -pyyyy --add-drop-table --lock-tables --complete-insert mydata >/opt/backup/mydata.sql

If username, password or host are required, add --host=host --user=user_name --password between mysqldump and the database name.

How to install the dump in the new database:

shell> mysql database < dump_file.sql

If your providers allows remote MySQL access, ie. not just to localhost, try to transfer the dump to the new server:

shell> mysqldump --host=old_host --opt old_database | mysql --host=new_remote-host -C new_database

If this is too much for you or you're used to a GUI, try to use SQL managers like phpMyAdmin or Webmin. Some providers have them installed by default, check their help for more details.

Note: when you import the dump files on the new database and you receive a timeout (default: 30sec), the dump file contains too many instructions for SQL to handle within the timeout. You need to split the dump file in smalle parts above the comments '#'.

PostgreSQL

If someone knows about PostgreSQL, please post here.

Take a look at PostgreSQL

Move the files

By default, your files are located in ./settings/, ./design/{your design name} and in ./var/storage. Compress, with WinZip or a simular program, the files with all subdirectories. Move them from your site to the other provider with FTP. Don't forget the SQL dump file and to decompress the files.

Change the settings

Check in ./settings all .ini.php files for the correct settings for the new provider. More information on the settings: LINK ME - ezwiki

If you experience access problems, rerun ./bin/modfix.sh and check all file and directory settings.

Comments

old var, design, settings

Is it best to delete everything in the fresh install of var, design, and settings before copying the old content over? (Also, the link LINK ME - ezwiki above seems to be out of date).

missing all images

After i moved site from developement computer (debian sarge) to identical server, site do not show any image.
I moved all directories and files of ez.

about db dumping

I added a new functionality in extension eZAdmin that can backup all variable site data.

Contents

Configuration

Configuration
Security
Optimization
Backup & Restore
    Move to new provider
    Overview
Troubleshooting


Created

27/03/2003
7:31:36 pm
by Karsten Jennissen

Last updated

27/07/2004
4:50:36 pm
by Guttorm Flatabø

Authors

Karsten Jennissen
jo go
Bård Farstad
Tony Wood
Guttorm Flatabø



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.