Zimbra NG Modules/Zimbra NG Backup/LDAP Backup and Restore with Backup NG

Revision as of 12:11, 29 November 2017 by Jorge de la Cruz (talk | contribs)



Zimbra NG Backup - LDAP Backup and Restore

LDAP Backup

General Information

LDAP is automatically backed up nightly after the scheduled SmartScan on every mailbox server, or can be manually backed up by using the zxsuite backup doBackupLDAP command:

LDAP Backup Configuration

The ldapDumpEnabled server attribute controls whether LDAP is backed up during the SmartScan. By default, this attribute is set to true.

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

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

Zimbra NG Modules

logo.png

Latest Version: 8.8

Zimbra NG Modules Resources

Here you can find useful resources for your Zimbra NG Modules



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search