Virtual distributed switch configurations can be exported to a file. The file contains the switch configuration settings and can also contain information about the dvPortGroup configurations. This file can then be used to restore the virtual distributed switch configuration or import the configuration to a different deployment.
Virtual distributed switch import, export, and restore operations are available in the vSphere Web Client.
Virtual distributed switch configurations should be exported before making changes to the distributed virtual switches in a production environment in order to ensure that the switch can be restored to an operational state in the event of a configuration error.