PowerShell Script/Command line to get additional info

PowerShell script exchange

PowerShell Script/Command line to get additional info

Veeam Logoby KarlW » Mon Jun 18, 2012 1:06 pm

Hi there,

I browsed the PowerShell part of the forum for a time to see if I could find a relevant post, but I can't seem to find something applicable to what i want to do.

We are taking our backups on a per datastore basis. That means each of our schduled jobs apply to a datastore.
In Veeam the datastore is the only object in the list of "VMs" in the job, but I need to know the size of each backup on each VM from the datastore.

I tried something like this:
$objInJob= (Get-VBRBackup -name "<NAME>").Get-Objects()
foreach($obj in $objInJob) { $obj.GetItem() }

This resulted in getting each of the VM in the datastore/Scheduled job.
But I can't find any way to get the final backupsize of each of the VMs I get from this list.

Any ideas of how to get this, or maybe other cmd-let to use?

Thanks!
KarlW
Influencer
 
Posts: 10
Liked: never
Joined: Mon Jun 18, 2012 1:02 pm
Full Name: Karl Wallenius

Re: PowerShell Script/Command line to get additional info

Veeam Logoby Sethbartlett » Mon Jun 18, 2012 2:03 pm

There is no way to get this size out of the GUI either. All backup jobs are placed into one set of files and you can see the backup/data size of the whole set, but not individual VMs.
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett

Re: PowerShell Script/Command line to get additional info

Veeam Logoby KarlW » Mon Jun 18, 2012 2:52 pm

Thanks a bunch Sethbartlett!
At least now I know and won't go deeper with Get-Member.
KarlW
Influencer
 
Posts: 10
Liked: never
Joined: Mon Jun 18, 2012 1:02 pm
Full Name: Karl Wallenius


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 8 guests