Restoring the Sun ONE Database
You can manually restore the database for any directory you have installed. For information about migrating a directory database to another host, see SRC-PE Getting Started Guide, Chapter 35, Upgrading the SRC Software on a Solaris Platform.
To restore the Sun ONE database:
- Log in as
root
.- Access the database folder.
cd /opt/UMC/iDS/slapd-sdx- Verify that the Sun ONE Directory Server is shut down. If it is not, shut it down.
./stop-slapd- Make sure you know the exact backup directory.
- Run the bak2db script by typing:
./bak2db /opt/UMC/iDS/slapd-sdx/bak/YYYY_MM_DD_HHMMSSwhere YYYY_MM_DD_HHMMSS identify the date and time when the database backup was created.
We recommend that you restart SRC components after restoring directory data from a backup, to ensure that the restored database is used.