Restore an ADAM instance
Applies To: Windows Server 2003 R2
Restore ADAM data on an ADAM instance that belongs to a configuration set
Restore a corrupted database that is preventing the ADAM instance from starting
Restore an ADAM instance that does not belong to a configuration set
Restore an ADAM instance that belongs to a configuration set
If it is running, stop the ADAM instance for which data will be restored.
Open Backup.
The Backup or Restore Wizard starts by default, unless it is disabled. You can use this wizard, or click the Advanced Mode link to work in advanced mode.
Click the Restore and Manage Media tab.
In the details pane, select the ADAM instance that you want to restore by selecting the check box to the left of the folder that represents the ADAM instance that you want to restore.
In Restore files to, click Original location.
On the Tools menu, click Options, click the Restore tab, click Always replace the file on my computer, and then click OK.
Click Start Restore.
After the restore is complete, close Backup.
Open an ADAM tools command prompt.
At the command prompt, type:
dsdbutil
At the dsdbutil: prompt, type:
activate instance instancename
where instancename represents the service name of the ADAM instance on which you want to restore data.
At the dsdbutil: prompt, type:
authoritative restore
At the authoritative restore: prompt, type one of the commands in the following table.
Command Meaning restore database
Performs authoritative restore of the entire directory database
restore object dn
Performs authoritative restore of the directory object whose distinguished name is represented by dn
restore subtree dn
Performs authoritative restore of the directory subtree whose distinguished name is represented by dn
Notes
To open an ADAM tools command prompt, click Start, point to All Programs, point to ADAM, and then click ADAM Tools Command Prompt.
To start Backup, click Start, point to All Programs, point to Accessories, point to System Tools, and then click Backup.
If Backup does not start in wizard mode by default, you can start the wizard by clicking Wizard Mode on the Welcome tab.
For information about stopping an ADAM instance, see Related Topics.
This procedure can be used if you want the data being restored to authoritatively override existing data in the configuration set.
For more information about the authoritative restore command in dsdbutil, at the authoritative restore: prompt, type ?.
When you restore ADAM instances on Windows XP Professional, you can restore only one ADAM instance at a time.
If you accidentally start a restore of an ADAM instance over a currently running ADAM instance, it is recommended that you immediately restart the computer, stop the ADAM instance, and then perform the restoration again.
If it is running, stop the ADAM instance for which data will be restored.
Open Backup.
The Backup or Restore Wizard starts by default, unless it is disabled. You can use this wizard, or click the Advanced Mode link to work in advanced mode.
Click the Restore and Manage Media tab.
In the details pane, select the ADAM instance that you want to restore by selecting the check box to the left of the folder that represents the ADAM instance that you want to restore.
In Restore files to, click Original location.
On the Tools menu, click Options, click the Restore tab, click Always replace the file on my computer, and then click OK.
Click Start Restore.
After the restore is complete, close Backup.
Restart the ADAM instance.
Notes
To start Backup, click Start, point to All Programs, point to Accessories, point to System Tools, and then click Backup.
If Backup does not start in wizard mode by default, you can start the wizard by clicking Wizard Mode on the Welcome tab.
If the ADAM instance fails to start after you perform this procedure, perform the appropriate procedure for completely restoring an ADAM instance, depending on whether your ADAM instance belongs to a configuration set or is unique.
When you restore ADAM instances to Windows XP Professional, you can restore only one ADAM instance at a time.
If you accidentally start a restore of an ADAM instance over a currently running ADAM instance, it is recommended that you immediately restart the computer, stop the ADAM instance, and then perform the restoration again.
Using the Active Directory Application Mode Setup Wizard or an ADAM unattended install, create an ADAM instance, specifying the same settings that you used during your original ADAM installation. However, do not create an application directory partition during setup.
Stop the ADAM instance you just created, as follows:
Click Start, point to Administrative Tools, and then click Services.
In Services, right-click the ADAM instance, and then click Stop.
Open Backup.
The Backup or Restore Wizard starts by default, unless it is disabled. You can use this wizard, or click the Advanced Mode link to work in advanced mode.
Click the Restore and Manage Media tab.
In the details pane, select the ADAM instance that you want to restore by selecting the check box to the left of the folder that represents the ADAM instance that you want to restore.
In Restore files to, click Original location.
On the Tools menu, click Options, click the Restore tab, click Always replace the file on my computer, and then click OK.
Click Start Restore.
After the restore is complete, close Backup.
Stop the ADAM instance you just created, as follows:
Click Start, point to Administrative Tools, and then click Services.
In Services, right-click the ADAM instance, and then click Stop.
Notes
To start Backup, click Start, point to All Programs, point to Accessories, point to System Tools, and then click Backup.
If Backup does not start in wizard mode by default, you can start the wizard by clicking Wizard Mode on the Welcome tab.
For information about backing up an ADAM instance, see Related Topics.
When you restore ADAM instances to Windows XP Professional, you can restore only one ADAM instance at a time.
If you accidentally start a restore of an ADAM instance over a currently running ADAM instance, it is recommended that you immediately restart the computer, stop the ADAM instance, and then perform the restoration again.
On one of the remaining ADAM instances in the configuration set, delete the server object that represents the ADAM instance that you want to restore, as follows:
Open an ADAM tools command prompt.
At the command prompt, type dsmgmt.
At the dsmgmt: prompt, type metadata cleanup.
At the metadata cleanup: prompt, type select operation target.
At the select operation target: prompt, type connections.
At the server connections: prompt, type connect to servercomputername:portnumber, where computername:portnumber represents the ADAM instance to which you are connecting.
At the server connections: prompt, type q.
At the select operation target: prompt, type list sites, and identify the number corresponding to the site in which the server object that you want to delete resides.
At the select operation target: prompt, type select site n, where n represents the number that is identified in the previous step.
Type list servers in site, and identify the full distinguished name (also known as DN) of the server whose server object you want to delete.
At the select operation target: prompt, type q.
At the metadata cleanup: prompt, type q.
At the dsmgmt: prompt, type q.
At the command prompt, type dsmgmt.
At the dsmgmt: prompt, type metadata cleanup.
At the metadata cleanup: prompt, type remove selected serverservernameoncomputername:portnumber
where servername represents the distinguished name of the server object that you want to remove and computername:portnumber represents the Domain Name System (DNS) name of the ADAM instance to which you are connecting.
Click Yes to confirm the deletion of the server object.
In addition, you must delete the server object from the sites container:
CN=Servers, CN=sitename, CN=Sites, CN=Configuration, CN={GUID}
where sitename represents the name of the site in which the server object exists, and GUID represents the globally unique identifier (GUID) of the ADAM instance.
When you complete the previous steps, install an ADAM replica from media.
Notes
To start Backup, click Start, point to All Programs, point to Accessories, point to System Tools, and then click Backup.
If Backup does not start in wizard mode by default, you can start the wizard by clicking Wizard Mode on the Welcome tab.
For help with dsmgmt, type ? at a dsmgmt prompt.
If you accidentally start a restore of an ADAM instance over a currently running ADAM instance, it is recommended that you immediately restart the computer, stop the ADAM instance, and then perform the restoration again.
Back up an ADAM instance to a file or a tape
Install an ADAM replica from media
Connect and bind to an ADAM instance using ADAM ADSI Edit
Browse the directory tree using ADAM ADSI Edit