Setup guide
Restoring Data
Chapter 6 Backing Up and Restoring Data 57
Running the Restore Tool
To run cmsrestore:
1. Log in to the machine where the CMS instance you want to restore is installed
and open a command shell.
2. Change to the CMS server instance directory in the server root. For example, if
your server root is
/usr/netscape/servers and the instance ID of the server
youwanttorestoreis
cmsinstance:
# cd /usr/netscape/servers/cert-cmsinstance
3.
Execute the restore script: either cmsrestore on UNIX or cmsrestore.bat on
Windows NT systems.
You can either provide the
<archive_path> as an argument or use the
argument
automatic (to read the archive path from logs/latest_backup):
# ./cmsrestore <archive_path> | automatic
For example,
# ./cmsrestore \
/var/tmp/CMS_cmsdemo_BACKUP-19991115093827.zip
If you use automatic as the argum ent, the restore proceeds automatically; go
to Step 9 when
cmsrestore completes.
4. The script asks if you would like to perform a complete or prompted restore.
Enter
❍ c (complete) to completely restore the contents of the archive without
further prompts. Proceed with Step 9 when the restore is complete.
❍ p (prompted) to have the script a sk you whether you want to restore
specific parts of the archive.
5. If the configuration Directory Server is located in the same server root, the first
prompt asks if you want to restore it. The configuration D irectory Server is the
directory used by the Administration Server to store information about
servers, users, and groups.
If you answer
yes, the restoretoolstops the Directory Server, restoresthe data,
then restarts the server. You may be asked to enter a password if one is
required to start the server.
6. Next you are asked if you want to restore selected Administration Server data.