• New Script: Backup VMware Virtual Distributed Switches V1.00

    January 8, 2020

    PowerShell, VMware

    I wrote an article on how to Backup the vCenter Server Appliance using NFS and then needed to figure out how to restore the backup. In VMware’s article on restoring a vCenter server, I saw this:

    “If you use a distributed virtual switch, you are advised to export
    separately the distributed virtual switch configuration before you
    restore to a backup. You can import the configuration after the restore. If you omit this consideration, you may lose the changes made to a distributed virtual switch after the backup.

    That lead me to create a script to automate backing up (or exporting) the Virtual Distributed Switches (vDS).

    I used some code from Jacob’s VMware documentation script, which made creating the script easier. When I ran the backup script, I notice there was a lot of screen noise when the PowerCLI modules loaded. I fixed that and ported the fix to the V1.9 VMware documentation script.

    By default, every vDS in every Datacenter on the specified vCenter server is backed up using the following naming scheme.


    Figure 1
    Figure 1

    As usual, the script has full help text and a ReadMe file.

    You can always find the most current script by going to https://carlwebster.com/where-to-get-copies-of-the-documentation-scripts/



    About Carl Webster

    Carl Webster is an independent consultant specializing in Citrix, Active Directory, and technical documentation. Carl (aka “Webster”) serves the broader Citrix community by writing articles (see CarlWebster.com) and by being the most active person in the Citrix Zone on Experts Exchange. Webster has a long history in the IT industry beginning with mainframes in 1977, PCs and application development in 1986, and network engineering in 2001. He has worked with Citrix products since 1990 with the premiere of their first product – the MULTIUSER OS/2.

    View all posts by Carl Webster

    No comments yet.

    Leave a Reply