ez.no / ezpublish / documentation / configuration / backup & restore / 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.
Start by doing a fresh install on the new server. Check if the site runs as expected and move on to the next step.
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 '#'.
If someone knows about PostgreSQL, please post here.
Take a look at PostgreSQL
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.
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
Greg McAvoy-Jensen
Friday 19 January 2007 12:38:54 am
missing all images
esu vytis
Friday 16 December 2005 12:06:56 pm
I moved all directories and files of ez.
about db dumping
Björn Dieding@xrow.de
Friday 08 October 2004 3:50:56 am