how to get backup from an imported backup repository?

PowerShell script exchange

how to get backup from an imported backup repository?

Veeam Logoby arthas87 » Mon Mar 17, 2014 1:38 pm

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
arthas87
Lurker
 
Posts: 1
Liked: never
Joined: Fri Feb 14, 2014 9:44 am
Full Name: art has

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

Veeam Logoby v.Eremin » Mon Mar 17, 2014 1:52 pm

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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests