Backup CentOS or Redhat Directory Server Database (LDAP)
Q. How can I backup Fedora / CentOS / Redhat Linux Directory server database?
A. You can back up your databases from the command-line using the db2bak command-line script. This script works when the server is running or when the server is stopped. Run script as follows:
# ./db2bak
OR
# /path/to/installed-directory/db2bak
The db2back script will create a backup folder with a format of year_month_day__hour (YYYY_MM_DD_hh_mm_ss). The backup folder will contain the exported LDIF files and other Berkeley databases (.db4 files).
Restore backup
First stop server:
#./stop-slapd
Next restore the backup database. For example:
#./bak2db /path/to/bak/2007_02_02_01_02_12/
Again start the Red Hat Directory Server:
# ./start-nslapd
References:
=> Populating Directory Databases - Red Hat Directory Server
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- RPM database location for backup purpose
- Restore a backup of a MySQL Database Server
- How do I backup Thunderbird mail and profile under Linux?
- Backup CentOS Linux RPM database
- How can I restore a backup of a MySQL database?
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: backup_redhat_directory_server, db2bak_script, directory_server, ldap, redhat_linux, restore_redhat_directory_server, server_database



Recent Comments
Yesterday ~ 7 Comments
Yesterday ~ 33 Comments
Yesterday ~ 2 Comments
Yesterday ~ 1 Comment
Yesterday ~ 2 Comments