PowerShell script exchange
Post Reply
jonshellpower
Lurker
Posts: 2
Liked: never
Joined: Jun 08, 2018 4:36 am
Full Name: Jonathan Barnard
Contact:

Tape Restore Points

Post by jonshellpower »

Hey,

Hoping someone can assist with getting the following through PS:

I have the following which pulls the information i want, which is, get all tape restore points by querying a backup job and the VM's inside the job:

Get-VBRJob -name "Backup job name" | Get-VBRJobObject | Get-VBRRestorePoint | ?{$_.GetBackup().JobType -eq "VmTapeBackup"} | Sort-Object -Property CreationTime -Descending

I would like to extend the code to also query each restore point it lists to see what tapes are associated with the restore point, e.g Restore point: 2018-01-01 -> tapes used: BNF0124L6.
Vitaliy S.
VP, Product Management
Posts: 27120
Liked: 2720 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Tape Restore Points

Post by Vitaliy S. »

Hello Jonathan,

Are you looking for something similar in your request? Just trying to understand the required output format.

Thank you!
jonshellpower
Lurker
Posts: 2
Liked: never
Joined: Jun 08, 2018 4:36 am
Full Name: Jonathan Barnard
Contact:

Re: Tape Restore Points

Post by jonshellpower »

Hi Vitaliy,

Thank you for getting back to me, it is what i need, however, i need it to be specific to files to tape, not VM to tape. Is that possible?

Thanks!
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Tape Restore Points

Post by veremin »

Check this thread; there are several examples given. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests