[opencms-dev] issues with OpenCMS
Nicolas Delsaux
nicolas.delsaux at online.fr
Mon Jun 30 09:45:01 CEST 2003
On Fri, 27 Jun 2003 18:12:49 +0200, Nicolas Delsaux
<nicolas.delsaux at online.fr> wrote:
>
> Since export does not seems to work. Is it possible to do that through
> synchronization ?
>
OK, I found out how to migrate one OpenCMS installation. Here are the
required steps.
I name target the machine where the site will go, and source the machine
where it is already installed.
This migration process is described for two machines using same Tomcat,
MySQL and JDK.
1 - Stop all running Tomcat instances (I do not know if it is useful, but
thanks to this mean, no modifications are done on any of those sites.
2 - On target machine, delete the opencms database (thanks to the drop
database command of mysql : mysql> drop database opencms;)
3 - On the source machine, dump the opencms database : mysqldump --user=u -
p opencms > opencms.dump
4 - copy the dump file from source to target.
5 - On the target machine, create an empty opencms database : mysql >
create database opencms;
6 - Read the dump file as a MySQL script mysql > use opencms; mysql >
source opencms.dump;
7 - Restart the Tomcat engine. And dance for me, baby :-)
And indeed, it fully works : all is copied, included images, modules, and
so on ...
--
Nicolas Delsaux
"Si tu peux voir détruire l'ouvrage de ta vie et, sans dire un seul mot, te
remettre à le rebâtir, tu seras un homme, mon fils."
More information about the opencms-dev
mailing list