[opencms-dev] quickest way to backup/restore state of opencms?

Jonathan Woods jonathan.woods at scintillance.com
Mon Nov 21 09:21:53 CET 2005

Chris -

I think the whole state of a OpenCMS installation is comprised of the MySQL
database instance (which you can back up using mysqldump), the expanded web
app in your Tomcat installation's 'webapps' folder, and maybe stuff in your
Tomcat installation's 'work' folder.  This has worked for me so far, and
I've been able to store all this in a zip archive (using an Ant task) and
then restore it all back again later after screwing things up.

A few caveats: (i) there may be things I'm missing; (ii) this doesn't
include any other files you might have caused OpenCMS to write through
customisation or whatever; (iii) in development you might need to edit
Tomcat configuration files (in ${TOMCAT_HOME}/'conf') or MySQL
configuration, and you'd probably want to capture these too; (iv) this
approach works fine for a development installation of OpenCMS, but for a
production one you'd have to think more carefully about locking things down
before snapshotting or restoring application state like this.


-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Christoph P. Kukulies
Sent: 21 November 2005 07:35
To: opencms-dev at opencms.org
Subject: [opencms-dev] quickest way to backup/restore state of opencms?

During my experimenting with importing, migrating 5.0 to 6.0 etc.
I come to the point where I have to revert to a state prior to the point
"where everything got messed" without having to run Setup on OpenCMS

Since I don't know exactly where OpenCMS is spread in every place in my
system (Windows XP Pro), it would be preferable to have a short script file,
like dropping all tables in MySQL and deleting out the opencms tree in the
tomcat directory(ies) and having unjarred everything back in place.

Any ideas?
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de

This mail is send to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit

More information about the opencms-dev mailing list