Sun ONE Meta-Directory 5.1.1 Installation Guide |
Chapter 7
Performing Backup and Restore OperationsMeta-Directory uses the Directory Server to store most of its configuration and the data that flows between different components. Hence, the backup process for Meta-Directory requires backup of Directory Server. A typical deployment could contain several directory servers associated with a single Meta-Directory installation, containing configuration, and data; the Connector Views for each of the connectors and so on.
Thus, backing up Meta-Directory involves a backup of all the Directory Servers. It is assumed that when the ‘Directory Server’ is mentioned, you must then perform the same operation for the associated Directory Servers.
The following sections are discussed:
Performing the Backup OperationBackup operation of Meta-Directory and Directory server involves backing up of all related files and directories, any external configuration files, and external data sources.
To perform the backup operation
- Make sure that no data is flowing between the external data sources, Connector Views, and Meta View. Also make sure no data is being changed in the Directory Server.
- Copy the server roots of Meta-Directory (Netsite_Root) and Directory Server (location where these products are installed) to a backup location. This backup location can also be a tape drive or any storage system.
This ensures that all the configuration, data, and binaries are backed up at once.
- External data sources such as: Oracle, Active Directory, Novell eDirectory, and so on should also be backed up to be in a consistent state when Meta-Directory is restored. See the appropriate products' documentation for information on backup and restore.
Backing Up Meta-Directory Configuration Only
Use the -B option to backup the complete Meta-Directory configuration in the Directory Server. This captures the Meta-Directory configuration and server instances from the Directory, and stores it in the LDIF files. It also copies the configuration directories for each Meta-Directory server instance to a specified backup location.
Usage:
upgrade.pl -<B> [-h directory server hostname] -p port -D Directory Manager -w password
Where: B: Backup
For example:
nsperl upgrade.pl -B -h ldap_host -p 389 -D cn=Directory Manager -w dmanager
Performing the Restore OperationUse the -R option to completely restore Meta-Directory.
Usage:
upgrade.pl -<R> [-h directory server hostname] -p port -D Directory Manager -w password
Where: B: Backup
For example:
nsperl upgrade.pl -R -h ldap_host -p 389 -D cn=Directory Manager -w dmanager
The -R option can only be used when the directory configuration is in a particular state. However, if the Meta-Directory configuration or the data is corrupted, you can restore from a previously generated complete backup (as described in the previous section) using the procedure described below.
To perform the restore operation
- Stop all the Meta-Directory servers and Directory servers (including the Administration servers).
- Move the existing Netsite_Root and Directory Server root directories from their existing location to a different location. You could delete these directories/files once the restore of a prior backup is successful and if it is not required.
- Restore the files and directories of Meta-Directory and Directory Server from the previously created backup location (such as: a tape drive). Ensure that you copy the files and directories to the same location where the original backup was located.
- Restore the external data sources.
- Restore the MySQL database that contains the changelog for the Lotus Notes and Novell Directory Connectors.
- Start all the servers.