The following procedure will help you restore dvSwitch from a backup:
- Bring up the Networking inventory using the vSphere Web Client by using the key combination Ctrl + Alt + 5.
- Right-click on the desired dvSwitch, go to Settings, and click on Restore Configuration...:

- In the Restore Configuration window, browse and select the backup file to restore from and choose to either restore dvSwitch and its port group settings or just the port group. Once you have made the desired choice, click Next to continue:

- On the Ready to complete screen, review the Import settings and click Finish to perform the restore:

- You should see an Import configuration of the entity task complete successfully in the Recent Tasks pane.