Backup and Restore
There are two ways to back up and restore your data in Directory Server:
- Back up and restore LDAP database: Directory Server allows you to back up and restore your LDAP database regularly for management or archival purposes.
- Back up and restore the Directory Server package: With DSM's built-in Backup & Replication, you can back up the Directory Server package and restore it later. This is especially useful when you want to move an existing package to a different $_DSPRODUCTNAME_$.
Back up and Restore LDAP Database
You can back up your LDAP database regularly and then restore the backup file.
To configure backup:
-
Go to Directory Server > Backup and Restore and click Configure.
-
Select a destination to save the backup file.
-
Tick Enable schedule backup, and then specify a backup schedule to enable automatic backup. If the option is left unchecked, you can still perform immediate backup later.
-
Specify the maximum number of backup versions.
-
Click Apply. Directory Server will start backing up the LDAP database to backup files according to your schedule.
Note:
-
If backup versions exceed the specified number, the earliest backup file will be removed.
-
When the backup process is running, Directory Server will stop LDAP service briefly until the process is complete. Therefore, it is recommended that the backup schedule is set to run the process when fewer people are using LDAP service (for example, 4:00 A.M.).
To perform immediate backup:
-
Click Back up now.
-
Click OK. When the process is finished, you will see a backup file with the prefix "synoldap" in the DirectoryServerBackup folder of the destination shared folder.
To restore a backup file:
-
Select the backup file located on your $_DSPRODUCTNAME_$ or computer.
-
Click Restore.
Note:
The restoration process will permanently remove all data and configurations in the current LDAP database. Proceed with caution.
Back up and Restore Directory Server
DSM's Backup & Replication allows you to back up the Directory Server package, and restore it to another $_DSPRODUCTNAME_$.
To back up Directory Server:
- Go to DSM > Backup & Replication > Backup to create a backup task.
- Follow the Backup Wizard, and choose Directory Server when you are prompted to select applications to back up.
- After the backup task is complete, the following Directory Server data will be backed up:
- Directory Server settings
- FQDN
- Password
- User and group data
To restore Directory Server:
- Go to DSM > Backup & Replication > Restore to restore the desired backup task.
- After the restore task is complete, the current settings and data of Directory Server will be overwritten.
Note:
- The package cannot be restored to Synology products running older versions of DSM.
- The package cannot be restored to a previous package version.