Cisco Systems OL-27172-01 Mobility Aid User Manual


 
10-6
Cisco Broadband Access Center 3.8 Administrator Guide
OL-27172-01
Chapter 10 Database Management
Backup and Recovery
Examples Here is an example of using the recoverDb.sh tool:
# recoverDb.sh /var/backup/rdu-backup-20060427-130345
In this example, the snapshot located in the /var/backup/rdu-backup-20060427-130345 directory will be
recovered to a consistent state. The progress of the recovery operation will appear on screen and the
activity will be recorded in the history.log file in the snapshot directory.
Note When using the recoverDb.sh tool, you can use the –help option to obtain usage information on the tool.
Database Restore
Restoring the database is the process of copying the previously recovered database snapshot to the
database location used by the RDU server. Only a database that has been previously recovered can be
restored.
Since restoring the database means replacing the current RDU database, it is very important that you first
properly remove and archive the old database.
Note Never delete the database you are replacing. You might need a copy of an old database to simplify future
system diagnostics.
Use the restoreDb.sh tool, located in the <BPR_HOME>/rdu/bin directory, to replace the current RDU
database with another database. When using this tool, you must specify an input directory. This directory
must contain the recovered backup snapshot of the database to be restored to the RDU server.
Note Before running the restoreDb.sh tool, you must stop the RDU server. Also, remember to back up the
database, then remove the database files from the rdu/db and the rdu/dblog directories.
Examples Here is an example of running the restoreDb.sh tool:
# restoreDb.sh /var/backup/rdu-backup-20060427-130345
In this example, the database found in the /var/backup/rdu-backup-200604275-130345 directory is
restored to the RDU server.
Note When using the restoreDb.sh tool, you can use the –help option to obtain usage information on the tool.
You must restart the RDU after the restore operation is completed. The RDU log file will contain
successful startup messages.
This tool displays progress on the monitor and logs its activity in the history.log file.