Book Image

Building Websites with OpenCms

Book Image

Building Websites with OpenCms

Overview of this book

This book takes you through the process of creating content-rich websites and applications using OpenCms. Although powerful and flexible, OpenCms can be daunting on first approach, but its advanced features reward the investment in learning. This book exists to ease Java developers into getting the most from OpenCms. OpenCms OpenCms is a professional-level, open source Website Content Management System, with which you can create and manage complex websites. Based on Java and XML technology, it fits into almost any modern IT environment. With hard-won experience of the practical difficulties faced by developers working with OpenCms, this book is the embodiment of the author's expertise, and the perfect way to master the system.
Table of Contents (12 chapters)
Building Websites with OpenCms
Credits
About the Author
Introduction

Backup and Recovery


A significant aspect of successfully implementing a content management system is providing a way to protect the data inside the CMS. A good backup and recovery mechanism is crucial for any CMS system. In this section, we will look at the facilities OpenCms offers for backing up and recovering the repository.

Backing Up the Database

Since OpenCms runs on top of an RDBMS, much of the OpenCms data can be backed up via the database's backup mechanism. For instance, MySQL offers the mysqldump and mysqlhotcopy command-line utilities for running database backups. Backing up the OpenCms tables is a good idea for a few reasons:

  • The task of backing up a database is often very easy to do from a cron script or scheduled task during a nightly backup process. This strategy fits in with the commonly implemented backup strategies. As we will see in a few moments, a full backup of OpenCms takes some manual work.

  • A database backup captures all the information in the OpenCms tables. Some...