Network and Security Manager Installation Guide
Restoring the Database
Validating the Database Recovery Process
182
./replicateDb backup
Or you can run the following command as root user:
su nsm ./replicateDb backup
The local backup is created in the directory specified by the
parameter in the High Availability configuration file. By default, it is created in
/var/netscreen/dbbackup
.
If you need to restore the database, you can use a shell archive script.
To restore the database:
Install NSM on a new server machine. The new server machine is required to use:
1.
the same IP Address as the previous server on which you ran the GUI Server
the same operating system that you ran on the previous server
During the installation, you must also install and configure the local database backup
option on both the GUI Server and Device Server.
Save your remote copy of the database backup files for the appropriate day of the
2.
week to the local database backup data directory on your new management system
server.
Navigate to the HA Server utilities subdirectory (
3.
Run the database restore shell archive script and specify the number day of the week
4.
for the backup file that you want to restore from (N = backup day of the week). For
example:
restoreDbFromBackup.sh N
For example, to restore the backup file from Friday:
sh restoreDbFromBackup.sh 5
The restore script:
Prompts you to confirm stopping the running server process(es).
1.
Verifies that you have properly logged in as the root user.
2.
Verifies that the backup file specified exists.
3.
Stops all running server processes.
4.
Uses rsync to copy the backup file to the appropriate server directories.
5.
Restarts all server processes.
6.
If you are using the local database backup option on a network where the GUI Server and
Device Server are installed on separate systems and you did not install the local database
highAvail.pathDbBackup
/usr/netscreen/HaSvr/utils
Copyright © 2010, Juniper Networks, Inc.
by default).
Need help?
Do you have a question about the NETWORK AND SECURITY MANAGER 2010.4 - INSTALLATION GUIDE REV1 and is the answer not in the manual?