Restoring the Database from a Backup from the CLI
Use this procedure to restore the database from a previously backed-up configuration file from the CLI.
This procedure is primarily used when restoring a database on a chassis that is not in service.
This procedure removes the existing configuration and is service affecting.
If you are restoring the database from a previously backed-up configuration file, the backed-up configuration must be compatible with the software and chassis:
A configuration database is specific to a software version. In order to restore a backed-up database onto a replacement CMM, you must ensure that the replacement CMM is running the same software version as the software version running when the backup was created.
In releases lower than 4.2, a configuration database is also specific to a chassis. You can only restore a backed-up database to a replacement CMM on a chassis if the database was backed up from that chassis. You cannot restore a database to a CMM on a chassis if the database was backed up from another chassis.
Starting with release 4.2, this restriction is relaxed. You can restore a backed-up database to any chassis of the same chassis type (BTI7801 to BTI7801, BTI7802 to BTI7802, BTI7814 to BTI7814).
- Back up the existing configuration. This is optional.
Save the configuration database to a remote location.
Save the running configuration to a remote location.
For example:
bti7800# show running-config | nomore | save 10.1.220.104_running_config_20150706
Value for 'password' (<string>): *********** bti7800# copy file 10.1.220.104_running_config_20150706 remote-url ftp://user@10.64.7.51/10.1.220.104_running_config_20150706 Value for 'password' (<string>):
- Restore the database.
To restore the CMM from a backed-up configuration file stored at a remote location:
For example:
bti7800# system database restore remote sftp://user@10.1.1.1/10.75.0.5_BTI7800v2.1.0_23151_20160309_205021.tar.gz
Value for 'password' (<string>): This is a service-affecting action that will overwrite the configuration database and perform an automatic reload all cold. Do you wish to continue? [no,yes] yes
To restore the CMM from a backed-up configuration file stored in local chassis storage:
Note This option is available only for the BTI7801.
bti7800# system database restore local
This is a service-affecting action that will overwrite the configuration database and perform an automatic reload all cold. Do you wish to continue? [no,yes] yes
This command might take 15 minutes or more to complete.
The CLI session closes and the CMM and all modules cold reload into the specified configuration. This might take several minutes. All existing service module configuration is replaced and traffic is affected. The CMM remains commissioned.
To log back in to the CLI, use the shared management IP address configured in the backup.