ZxBackup: LDAP Backup and restore

From ZeXtras Suite Wiki

Jump to: navigation, search
Language: English  • español • português
ZxBackup logo box.png
Available since version: 0.87
Latest Version: 2.12.2
Released on: January 2nd, 2019
Compatibility List
Admin Guide
Backup Initialization
ZspBackup logo box.png

LDAP Backup

Warning.png Warning!

As of Zextras Suite 2.10 and onwards, the LDAP Backup Scheduling feature has been temporarily removed.

General Information

LDAP can be manually backed up by using the zxsuite backup doBackupLDAP command.

LDAP Backup files

Backup files are compressed and stored in the server subdirectory of the Backup Path. Backups are named ldap_[timestamp].tar.gz and contains the following files:

  • ldap.ldif (main user information)
  • ldap-schema.ldif (schema information)
  • ldap-config.ldif (backup of all cn=config elements)

The files are in standard ldif format and compatible with the LDAP CLI toolset.

LDAP Restore

Warning.png Warning!

Restoring an LDAP backup is not an automated process and unlike Zextras Backup's restore modes has no failsafes or security mechanisms. A high knowledge of your system is required to choose the best course of action, so make sure you know what you are doing before proceeding.

Before restoring an LDAP from the backup, make sure that:

  • The LDAP service is not running
  • The /opt/zimbra/data/ldap/config directory is empty and writeable
  • The /opt/zimbra/data/ldap/db directory is empty and writeable

To restore:

  • Unpack the backup file you wish to use for the restore
  • Run the following commands from the directory containing the backup files as the `zimbra` user.
    • /opt/zimbra/libexec/zmslapadd -c ldap-config.ldif
    • /opt/zimbra/libexec/zmslapadd ldap.ldif
Personal tools