Overview
Restore a database on your system after removing related Docker services.
This task is for recovering your database using a backup archive after you remove conflicting Docker services. You may need to do this if the database becomes corrupt or you wish to revert to a previous state.
Procedure
| 1. | Check the Cisco ONP database. Example:
|
|
| 2. | Remove the Cisco ONP back-end and front-end Docker services,"docker service rm cnp_cnp cnp_cnp_frontend" and check again: Example:
|
|
| 3. | Copy the database to the folder that is mapped to PostgresDB container's volume: Example:
|
|
| 4. | Restore the database and check. Example:
|
The database is restored from the backup archive file and service access is enabled as appropriate.