Open-Xchange backup: Difference between revisions

From Open-Xchange
(Created page with '= Backup = This article describes what is needed to back up Open-Xchange == Configuration == the complete configuration is in the directory /opt/open-xchange/ A backup of th...')
 
Line 11: Line 11:
==User Data==
==User Data==
All user Data is in the Mysql Database as well as in the location of the registered filestores.
All user Data is in the Mysql Database as well as in the location of the registered filestores.
Following command gives an overview of directories that have to be backed up:
/opt/open-xchange/sbin/listfilestore


It is important that the filestore and the database is backed up together at the same time. This is
It is important that the filestore and the database is backed up together at the same time. This is
Line 19: Line 17:
tool is needed to resolve inconsistencies:
tool is needed to resolve inconsistencies:
  /opt/open-xchange/sbin/checkconsistency
  /opt/open-xchange/sbin/checkconsistency
===Filestore===
For the Filestore, standard tools can be used for backup
Following command gives an overview of directories that have to be backed up:
/opt/open-xchange/sbin/listfilestore
===Database===
For the Database, the standard mysql tools can be used for backup.
if mysqldump is used to backup the database, following parameters are recommended:
mysqldump -–all-databases -–single-transaction
=Restore=
In case of a restore, it is recommended to restore database and filestore data that have been backed
up at the same time to avoid inconsitencies. After a restore the consistencie tool has to run for a
check:
  /opt/open-xchange/sbin/checkconsistency

Revision as of 15:41, 15 January 2010

Backup

This article describes what is needed to back up Open-Xchange

Configuration

the complete configuration is in the directory

/opt/open-xchange/

A backup of the configuration files is recommended once after installation and every change.

User Data

All user Data is in the Mysql Database as well as in the location of the registered filestores.

It is important that the filestore and the database is backed up together at the same time. This is because the meta data for the files is stored in the database. The best way to achieve this is using snapshots or similar mechanism. In case the database and the filestore are not in sync following tool is needed to resolve inconsistencies:

/opt/open-xchange/sbin/checkconsistency

Filestore

For the Filestore, standard tools can be used for backup Following command gives an overview of directories that have to be backed up:

/opt/open-xchange/sbin/listfilestore

Database

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

mysqldump -–all-databases -–single-transaction

Restore

In case of a restore, it is recommended to restore database and filestore data that have been backed up at the same time to avoid inconsitencies. After a restore the consistencie tool has to run for a check:

 /opt/open-xchange/sbin/checkconsistency