Create a backup of Crosswork data to a remote SCP server and optionally include the external NSO CDB for recovery purposes.
Create a backup of your Crosswork data, optionally including the NSO CDB, to a remote SCP server.
Backing up Crosswork and NSO data ensures you can recover configurations in case of system issues. NSO backups can be automated, but restoring the NSO CDB is a manual process. For restore instructions, see Restore data using an external NSO.
Before you begin
Ensure that you:
-
Install a compatible version of NSO in system default mode.
-
Install the latest version of the Crosswork Network Controller Transport SDN function pack using the NSO deployment manager window. For more information, see Install Cisco NSO Function Pack Bundles from Crosswork UI in the Cisco Crosswork Network Controller 7.2.x Installation Guide.
-
If you did not install the Transport SDN Function Pack using the NSO deployment manager window and instead installed it manually, you must manually copy the
ncs_backup.shscript into the/var/opt/ncs/scriptsfolder. Otherwise, the backup operation will fail.-
Get the NCS run directory using the command:
vi $NCS_DIR/../installdirsExample:
NCS_RUN_DIR="/var/opt/ncs" -
Copy the scripts to the NCS run directory.
$ cd tsdn-<RELEASE-VERSION>-nso-<NSO-VERSION>/ $ sudo cp ncs_backup.sh <NCS_RUN_DIR>/scripts/ $ sudo cp ncs_restore.sh <NCS_RUN_DIR>/scripts/Example:
$ sudo cp ncs_backup.sh /var/opt/ncs/scripts/ $ sudo cp ncs_restore.sh /var/opt/ncs/scripts/
-
-
-
Collect the hostname or IP address, port number, and file path for your SCP server.
-
Ensure you have SCP server credentials with read and write access to the backup folder.
-
Configure SSH as the connectivity protocol in the NSO provider, with an appropriate credential profile.
-
Ensure the user associated with the credential profile has sudo permissions and full access to /var/opt/ncs/backups/ on the NSO server.
-
See general backup guidelines in Back up data for additional requirements.
If any prerequisite is not met, the backup job may fail.
Procedure
| 1. | Configure the SCP backup server.
|
|
| 2. | Create a backup job for Crosswork and external NSO data.
|
|
| 3. | Monitor the backup job.
|
A backup of Crosswork and (optionally) NSO data is created and stored on the SCP server. The job status and any errors are displayed in the Job Details panel.
What to do next
-
For restoration, see Restore data using an external NSO.
-
Review backup jobs to confirm successful completion.