Skip to content

05 Data management

Shubhra Prakash Nandi edited this page Apr 28, 2026 · 33 revisions

Backup

Data

Make regular backup of the following.

  1. Sync database (logical or physical).
  2. datadir directory.

Configuration

Backup the following before and after their contents are modified.

  1. conf directory.

Migration

WARNING: Do not attempt any of the below mentioned migration activities while the application is online as it may result in data corruption and/or data inconsistency.

Data directory

Move the directory pointed to by datadir configuration key in the conf file to new location. Update datadir configuration key in the conf file to new location.

Cache directory

Move the directory pointed to by cachedir configuration key in the conf file to new location. Update cachedir configuration key in the conf file to new location.

Sync database

If migrating to a new sync database product create the database/schema as per sql/<database_product>/ddl.sql in the new database and import all data from old database into the new database. Update dsn key (and others as required) under sync_database key in the conf file to point to the new database product.

Application

When moving the application from one system to another install the same version of the application in the new system as usual. Restore data and configuration from your backup to the new system. Optionally copy cachedir directory (if using 'local_fs' as the caching backend) from the old system to the new system.

Clone this wiki locally