Export and Restore vSphere Distributed Switch configuration
Export Distributed Switch Configuration
Step 1. Open the vSphere Web Client and Navigate to Home -> Networking
Step 2. Right Click on the DVS that you would like to backup and select All vCenter Actions -> Export Configuration
Step 3. You can either select to backup Distrbuted switch and all port groups or just the Distributed Switch. Specify a Description (optional) then hit OK.
Step 4. Select Yes to save the exported file and specify a location.
Restore Distributed Switch Configuration
Step 5. To restore a VDS configuration, right click on the VDS, select All vCenter Actions -> Restore Configuration
Step 6. Browse to your Backup file, select either Restore distributed switch and all port groups or just Restore distributed switch only and click Next then Finish