PowerShell script exchange
Post Reply
arthas87
Lurker
Posts: 1
Liked: never
Joined: Feb 14, 2014 9:44 am
Full Name: art has
Contact:

how to get backup from an imported backup repository?

Post by arthas87 »

hello
i need to extract all the backup that are imported.
i'm trying to use the cmd
get-VBRJobObject -job "jobname"
if jobname is a backup Job non imported, it shows all vm contained, otherwise if jobname is an imported backup job i have the error "Job with name XXXXX was not found"

someone can help me?

many thanks

Stefano
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: how to get backup from an imported backup repository?

Post by veremin »

From my perspective, the algorithm should be as the following.

1) Get list of all imported backups. ($ImportedBackups = Get-VBRBackup | where {$_.FindJob() -eq $null})
2) Create a cycle, within which you will:
a) Get a required restore point for given backup (Get-VBRRestorePoint)
b) Restore the corresponding restore point (Start-VBRRestoreVM)
c) Proceed to the other backup

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests