Lab: NSX Manager backup configuration

From Iwan
Jump to: navigation, search

In this lab I am working with the following software and versions:

Software Version Filename
Ubuntu Server 20.04.3 ubuntu-20.04.3-live-server-amd64.iso
VMware NSX nsx-unified-appliance-
  1. Make sure NSX is backed up every Sunday and Wednesday.
    1. Make sure the backup occurs outside business hours.
    1. Also update the backup every two hours after a change has been made on NSX.


The Steps

STEP 1: Configure backup

STEP 1» Configure backup

The following configuration parameters will be used when backup is configured on NSX:

Parameter Name Input
FQDN or IP Address
Port 22
Directory Path /home/administrator/nsxbackup/
Username administrator
Authentication Scheme Password
Password VMware1!
Passphrase VMware1!

Go to System → Lifecycle Management → Backup and Restore to configure backup on NSX.

Click on “Edit” to configure the SFTP Server.


Use the configuration parameters provided above.


When I click “Save” I get a message to add the missing Fingerprint of the SFTP server. Click on “Add”.


The SSH Fingerprint is added and click on “Save” again.


The SFTP server is now configured. Notice the IP address under the SFTP label. Click on “Start Backup” to start my first backup.


After the backup has started I can keep track by looking at the “Backup Status” bar.


When the backup is finished I see the backup in the “Backup History” section.


I can also verify if the backup is done properly by logging into the SFTP server and verify if the folders and files are there.

administrator@step-lin:~/nsxbackup$ pwd

administrator@step-lin:~/nsxbackup$ ls -l
total 4
drwxrwxr-x 3 administrator administrator 4096 Aug 25 11:02 cluster-node-backups

administrator@step-lin:~/nsxbackup$ cd cluster-node-backups/

administrator@step-lin:~/nsxbackup/cluster-node-backups$ ls -l
total 4
drwxrwxr-x 3 administrator administrator 4096 Aug 25 11:02

administrator@step-lin:~/nsxbackup/cluster-node-backups$ cd

administrator@step-lin:~/nsxbackup/cluster-node-backups/$ ls -l
total 4
drwxrwxr-x 2 administrator administrator 4096 Aug 25 11:03 backup-2022-08-25T11_02_21UTC

administrator@step-lin:~/nsxbackup/cluster-node-backups/$ cd backup-2022-08-25T11_02_21UTC/

administrator@step-lin:~/nsxbackup/cluster-node-backups/$ ls -l
total 21584
-r-------- 1 administrator administrator 21207040 Aug 25 11:02 cluster_backup-a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a-
-r-------- 1 administrator administrator   890880 Aug 25 11:03 node_backup-a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a-

⚠️ The folder and filename contains the following UUID: a7d94d56-cbfd-4ca9-8b9b-b2a9daa2d45a. This UUID is the identifier of the NSX Manager that is the “Leader” in the cluster, and the backup will be done using this leader. To determine how I can find out what the leader is click here.

To schedule a backup to periodically automatically make backups click on “Edit” below the Schedule label.


I can schedule backups with a daily interval…


And with a weekly interval on specific days.

I want to make backups on Sundays and Wednesdays at 03:00 in the night.

I also want to automatically make a backup when a change is made. To prevent that a Backup is made every-time a change is made I want to do this with intervals of 2 hours. This means that when a change occurs one backup copy will be made every 2 hours. Click “Save”.


The Schedule is now configured. Notice the word “Enabled” next to the Schedule label.


The moment I clicked save a new backup was made, as a change was made. The change being scheduling the actual backup.


Continue with >> Lab: Replacing the self-signed SSL certificates with CA-signed certificates