-
- Lurker
- Posts: 2
- Liked: never
- Joined: May 21, 2013 3:43 pm
- Full Name: AshuP
- Contact:
Disk configuration
Hello, new to Veeam powershell...Has anyone come up with a script to list all the local drives that are included in the backup jops? We have few jobs which contain several servers and wanted to check which disk(s) are selected in the backup. I did the get-vbrjob | export-csv but that doesn't give me the info I am looking for....anyone por favor?
-
- Product Manager
- Posts: 20443
- Liked: 2310 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Disk configuration
Providing I’ve understood you correctly, the following script should answer your requirements:
It lists all VMs that are backed up within a given job and also DiskFilter options for this VMs. All disks are enumerated one by one, so if you want to match SCSI (0:0) then it should be 2000 and so on:
Hope this helps.
Thanks.
Code: Select all
asnp VeeamPSSnapin
Get-VBRJob -name "Name of your Job" | Get-VBRJobObject | Select-Object -Property @{N="Name";E={$_.Name}} ,@{N="Included disks";E={$_.DiskFilter}}| Sort Name -Descending | Format-Table
Code: Select all
SCSI (0:1) - 2001
SCSI (0:2) - 2002
...
SCSI (1:0) - 2015
Thanks.
-
- Lurker
- Posts: 2
- Liked: never
- Joined: May 21, 2013 3:43 pm
- Full Name: AshuP
- Contact:
Re: Disk configuration
Thank you very much v.Eremin, that gave me what I was looking for.
-
- Product Manager
- Posts: 20443
- Liked: 2310 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Disk configuration
Glad to hear that I was able to help.
Should any additional questions arise, don’t hesitate to let me know. Thanks.
Should any additional questions arise, don’t hesitate to let me know. Thanks.
Who is online
Users browsing this forum: No registered users and 21 guests