Objective
This reference describes how NFVIS backup and restore options affect configurations, VMs, and images.
Backup commands and status
The following examples shows backup options and status:
nfvis# hostaction backup configuration-and-vms file-path intdatastore:sample
nfvis# hostaction backup configuration-only file-path extdatastore2:sample-dir/sample
nfvis# show hostaction backup status
hostaction backup status 2020-07-16T07:02:44-00:00
destination intdatastore:backup_20200704.bkup
status BACKUP-SUCCESS
size "2798.0 MB"
components FIREWALL
status BACKUP-SUCCESS
last update 2020-07-16T07:07:38-00:00
size "20.49 MB"
details ""
components Linux
status BACKUP-SUCCESS
last update 2020-07-16T07:07:36-00:00
size "0.01 MB"
details ""
components NFS
status BACKUP-SUCCESS
last update 2020-07-16T07:06:44-00:00
size "0.01 MB"
details ""
components NFVIS
status BACKUP-SUCCESS
last update 2020-07-16T07:02:48-00:00
size "0.72 MB"
details ""
components ROUTER
status BACKUP-SUCCESS
last update 2020-07-16T07:07:35-00:00
size "579.89 MB"
details ""
components VM_Images_Flavors
status BACKUP-SUCCESS
last update 2020-07-16T07:06:45-00:00
size "2197.73 MB"
details ""
Restore options and outcomes
To restore a previous backup on an existing NFVIS setup or on a new NFVIS setup use except-connectivity option which preserves
connectivity of the NFVIS and restores everything else from backup.
The restore is based on the system condition created during backup.
|
Condition
|
Restore configuration-only
|
Restore configuration-and-vms
|
|
Restore system configurations
|
Yes
|
Yes
|
|
Restore upgrade configurations
|
yes, requires same upgrade files in system if the host backup was taken has such upgrade files.
No, if host where backup was taken did not have any upgrade files registered. Restore will fail.
|
Yes, requires same upgrade files in system if the host backup was taken has such upgrade files.
No, if host where backup was taken did not have any upgrade files registered. Restore will fail.
|
|
Restore registered images and flavors
|
Yes, if images sources are still available (URL link is still valid, or uploaded files are still in the same locations).
No, if images sources are not available (URL link is invalid, upload files are deleted or moved to new location). The restore
process will fail.
|
Yes, restore from backup file.
|
|
Restore deployments
|
No
|
Yes, restore from backup file.
|

Note
|
This means if there are upgrade files registered in the NFVIS. The backup create on this host will contain those information.
If using this backup on new host or same host after factory-default-reset, the restore will fail.
|
|
Condition
|
dpdk-disabled while backup
|
dpdk-enable while backup
|
|
dpdk-disabled while restore
|
Yes (system is dpdk-disabled)
|
Yes (system will beconverted to dpdk enabled, and VM vnic will be convereted inf needed)
|
|
dpdk-enabled while restore
|
No support
|
Yes (system is dpdk-enabled)
|

Note
|
In
hostaction
restore
process, the full file name (with .bkup extension) is required in the CLI.
|
nfvis# hostaction restore file-path intdatastore:sample.bkup
The following example shows how to restore a backup on a different NFVIS device:
nfvis# hostaction restore except-connectivity file-path extdatastore2:sample-dir/sample.bkup
Use the
show
hostaction
restore-status
command to view the status of the overall restore process and each components like system, image and flavors, vm and so on.
The following is an example of the show command output after the restore process is complete:
nfvis# show hostaction restore-status
hostaction restore-status 2020-07-16T07:18:54-00:00
source intdatastore:backup_20200704.bkup
status RESTORE-SUCCESS
components FIREWALL.vmbkp
status RESTORE-SUCCESS
last update 2020-07-16T07:26:34-00:00
details ""
components Linux.vmbkp
status RESTORE-SUCCESS
last update 2020-07-16T07:26:03-00:00
details ""
components NFS.vmbkp
status RESTORE-SUCCESS
last update 2020-07-16T07:25:36-00:00
details ""
components NFVIS
status RESTORE-SUCCESS
last update 2020-07-16T07:22:03-00:00
details ""
components ROUTER.vmbkp
status RESTORE-SUCCESS
last update 2020-07-16T07:26:55-00:00
details ""
components VM_Images_Flavors
status RESTORE-SUCCESS
last update 2020-07-16T07:26:01-00:00
details ""
components intdatastore:backup_20200704.bkup
status VERIFICATION-SUCCESS
last update 2020-07-16T07:18:54-00:00
details ""
You can backup registered images and flavors into backup package and restore these images and flavors into the system. The
new system does not require a pre-registered image before system restore. If the system has existing images, flavors or deployments,
the system restore erases them all and restores from its own backup.