05-27-2020 04:54 AM
Hi all,
We have a requirement for DB backup and restore.
Exploring the forum I found 2 options
1) ncs-backup: This is applicable only for system-install. We are using local-install.
2) ncs_load: This take the config backup in cli/xml format. We may not be able to use this since there is config sequence dependency in our case.
My query is that can we do the following for db backup:
1) Take backup of the cdb files.
2) Stop the nso
3) Replace the cdb with the backed-up files.
4) Start nso again.
Thanks
05-27-2020 10:34 AM
Yes you can, that is probably the easiest way to do it, of course the packages have to match as well.
You can look inside the ncs-backup script to see how it works.
05-27-2020 11:32 AM
Thanks for the response.
Can you elaborate more on this point "packages have to match as well".
Scenario 1:
a) Consider a scenario where we have a nso version x, where we have a package A. We take a CDB backup here.
b) In nso version y, we decided to add another package. Now can we start the version y with the CDB backup taken from version x ? Also can vice-versa be done ?
Scenario 2:
a) Consider a scenario where we have a nso version x, where we have a package A. We take a CDB backup here.
b) In version x.1(minor change), we change something in existing package A. Now can we start the version x.1 with the CDB backup taken from version x ? Also can vice-versa be done ?
Thanks
Sumit
05-27-2020 12:33 PM
05-27-2020 07:39 PM
As per my understanding, you are referring to yang model related changes.
So if the yang model changes are not compatible, what is the behaviour in case we copy the CDB database files and restart the nso ?
Will entire config restore fails or the config related to that model or subtree fails ?
Thanks
Sumit
05-27-2020 08:48 PM
02-15-2021 06:32 AM
Can we import CDB in NETSIM running in docker container
Can anyone pls help to do this
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide