Open-Xchange backup: Difference between revisions

From Open-Xchange
Line 27: Line 27:


=Restore=
=Restore=
In case of data restore, it is needed to use database and filestore data that have been backed
In case of data restore, it is imperative to use database and filestore data that have been backed
up at the same time to avoid inconsitencies. After a restore the consistency tool has to run for a  
up at the same time to avoid inconsistencies. After a restore the consistency tool has to run for a  
basic check:  
basic check:  
   /opt/open-xchange/sbin/checkconsistency
   /opt/open-xchange/sbin/checkconsistency

Revision as of 08:54, 18 January 2010

Backup

This article describes the components needed to back up Open-Xchange and its data.

Configuration

A backup of the configuration files is recommended once after installation and after every change (also before and after any software update).

All configuration is in the directory

/opt/open-xchange/

User Data

User Data is in the Mysql Database as well as in the location of the registered filestores as nomal files in the filesystem.

It is important that filestore and database are backed up at the same time. This is because the meta data for the files in the filestore directories is in the database. The best way to achieve this, is using snapshots or a similar mechanism.

Filestore

For the Filestore, standard tools can be used to perform the backup. Following command gives an overview of all filestore directories.

/opt/open-xchange/sbin/listfilestore

Database

For the Database, the standard mysql tools can be used for a backup. If mysqldump is used to back up the database, following parameters are recommended:

mysqldump -–all-databases -–single-transaction

Restore

In case of data restore, it is imperative to use database and filestore data that have been backed up at the same time to avoid inconsistencies. After a restore the consistency tool has to run for a basic check:

 /opt/open-xchange/sbin/checkconsistency

Single context restore

it is possible to only restore a single context from within a complete mysql database dump. This is described in the Installation and Administration Manual:

http://software.open-xchange.com/OX6/doc/OX6-Installation-and-Administration.pdf