Cisco SD-WAN Backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2019 03:57 PM
Hi
Is there any mechanism by which we can take the backup of all the configurations from vManage such as a centralized backup which can be used in case of any restoration during any trouble or issue.
- Labels:
-
SD-WAN Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2019 07:47 PM
you can take backup from vManage configuration DB through below CLI:
>> request nms configuration-db
NOTE: above CLI will take a local backup from the configuration database. So you should run a separate scheduled script to transfer it to an external storage - central backup server or whatever you have inside your network
use below url for details:
And if you need to restore vManage from a catastrophic crash, you can use below guideline.
https://sdwan-docs.cisco.com/Product_Documentation/vManage_How-Tos/Operation/Restore_the_vManage_NMS

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2019 09:56 AM
Unfortunately that first link doesn't work anymore. I found the command to backup the database locally, but like you said I want to transfer the DB file (scp) to a different server in case of crash.
I found an upload command but the Cisco documentation states it doesn't work for vmanage??
Anyone know how to SCP the database file to remove server?
thanks
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2019 03:08 AM
The correct first link is this: https://www.cisco.com/c/en/us/td/docs/routers/sdwan/command/sdwan-cr-book/operational-cmd.html#wp3537591161
You can save the configuration database at a location on vmanage (such as the home folder of the admin user, for example) and then retrieve it via SCP.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2020 09:04 AM
Anyone know how to script this to backup the DB periodically? You would think this would be a built in feature.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 11:55 PM
We use the following script to create a backup from remote, and then copy it (pull) to our backup server via SCP (sorry tabs got lost in the copy process here):
function run_configdb_backup() {
export VMANAGE_HOST=$1
export VMANAGE_USER=$2
DATE=`date +"%Y%m%d-%H%M"`
# cloud hosted instances do not support automatic daily backups, so we need to create this manually first.
# TAC SR 694690210
if [[ $1 == *viptela.net ]]
then
# delete pre-existent file
echo "request execute rm -f /opt/data/backup/sastre-backup.tar.gz" | ssh -i ~/.ssh/id_rsa ${VMANAGE_USER}@${VMANAGE_HOST}
# create backup
echo "request nms configuration-db backup path /opt/data/backup/sastre-backup" | ssh -i ~/.ssh/id_rsa ${VMANAGE_USER}@${VMANAGE_HOST}
# SCP file by using id_rsa SSH private key
scp -q -i ~/.ssh/id_rsa ${VMANAGE_USER}@${VMANAGE_HOST}:/opt/data/backup/sastre-backup.tar.gz ${CONFIGDB_BACKUP_DIR}/${VMANAGE_HOST}/configdb-${DATE}.tar.gz
else
# SCP file by using id_rsa SSH private key
scp -q -i ~/.ssh/id_rsa ${VMANAGE_USER}@${VMANAGE_HOST}:/opt/data/backup/daily/configdb-daily.tar.gz ${CONFIGDB_BACKUP_DIR}/${VMANAGE_HOST}/configdb-${DATE}.tar.gz
fi
}
