Veeam extract and vmware-vdiskmanager

Since we’re too.. conservative.. to rely entirely on disk storage for our backups, we dump all our VMs to tape once every week. We don’t want to rely on Veeam Backup and Replication in order to restore from tape, so we decided to extract everything from the latest backup every saturday afternoon when no other backups are running.

We’re using Veeam Backup and Replications included extract utility for this, which will extract all vmx, vmdks etc to a folder of our choosing. After that, we want to 7zip the files before sending them off to a BackupExec job (nope, not relying on BackupExecs compression either). I ran into a problem when I was trying to write a simple batch file for the post processing, that would call vmware-vdiskmanager.exe to shrink all the vms extracted. vdiskmanager can’t handle wildcards, and needed the filenames passed to it, from subdirs (which included vm numbers) extracted by Veeam extract.

My solution is a quick and dirty powershell script which will call vmware-vdiskmanager on every vmdk it finds in the path specified (excluding the files we can’t shrink):

get-childitem -include *.vmdk -exclude *-flat.vmdk,*-ctk.vmdk -recurse | % {
echo "", "Processing $_"
D:\Veeam\bin\vmware-vdiskmanager.exe -k $_.FullName



2 thoughts on “Veeam extract and vmware-vdiskmanager

  1. tzzz1986

    Hey, thanks for this article, you mentioned that you use Veeam Backup and Replications included extract utility for this to extract the VBK files to a destination of your choice. Did you automate this with some kind of script? I am also struggling with this because the VBK file name is different each time. Would love to hear your solution!

    1. m0x50 Post author

      Sorry, I can’t recall. This is an old post on an archived blog no longer maintained. You can script stuff without much hassle. I used Powershell in most scenarios at that time. You could for example loop though and process all vbk files found with
      gci -Recurse | ? {$ -match ".vbk"}


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s