PowerShell script exchange
Post Reply
Jabe
Novice
Posts: 4
Liked: never
Joined: Feb 06, 2018 7:08 am
Contact:

RestorePoints for Veeam Agent backup jobs

Post by Jabe » Jan 30, 2019 4:35 pm

Hi,
I have a question about Get-VBRRestorePoint. Does this command return restorepoints of physical servers, it means the servers in the protected group (they have veeam agent installed)?
This cmd let returns only Restorepoints for VMs. It returns RPs created by Backup Copy Job only, but no restorepoints created by Backup Job.
$XX=Get-VBRRestorePoint -Name SRV-01.company.com
$XX | foreach-object {$_.GetBackup().PartialPath}
Elements IsEmpty Internal
-------- ------- --------
{BCJ-PL-ZL-FYZ1} False BCJ-PL-ZL-FYZ1
{BCJ-PL-ZL-FYZ1} False BCJ-PL-ZL-FYZ1
{BCJ-PL-ZL-FYZ1} False BCJ-PL-ZL-FYZ1

I know, that this server has the other 3 RPs created by Backup job (I see them in the Enterprise manager)

Thanks
jabe

nielsengelen
Veeam Software
Posts: 2651
Liked: 546 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: RestorePoints for Veeam Agent backup jobs

Post by nielsengelen » Jan 31, 2019 10:31 am

Jabe, Get-VBRRestorePoint is only for VMware and Hyper-V backup restore points (see our userguide which states platforms VMware and Hyper-V).

There are several cmdlets available for endpoint backup jobs (see https://helpcenter.veeam.com/docs/backu ... l?ver=95u4)
VCP-DCV
Veeam Certified Architect (VMCA)
http://foonet.be

Dima P.
Product Manager
Posts: 10551
Liked: 861 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: RestorePoints for Veeam Agent backup jobs

Post by Dima P. » Jan 31, 2019 10:48 am

Jabe,

Try this:

Code: Select all

$backup = Get-VBRBackup -name "YourAgentBackupJobName" 
Get-VBRRestorePoint -backup $backup

Jabe
Novice
Posts: 4
Liked: never
Joined: Feb 06, 2018 7:08 am
Contact:

Re: RestorePoints for Veeam Agent backup jobs

Post by Jabe » Jan 31, 2019 11:33 am

Hi,
thank you for all the answers.
Get-vbrepjob doesn’t return any objects , our Backup Jobs for physical servers are created in VBR console (the physical servers are in Protected group) .
And similar: Get-VBRBackup -name "BJ-Phys1" doesn’t return anything.
Get-VBRBackup returns all of our Backup jobs and Backup Copy Jobs, with the exception of Agent Backup Jobs. It returns Backup Copy Jobs, that works with the Restorepoints from Agent Backup Jobs, but doesn’t return their “primary” backup jobs.
Is there any cmd-let for dump the “agent oriented” backup jobs? I guess I'm blind, I cannot find any.
Any idea what I do wrong?

Vek17
Service Provider
Posts: 43
Liked: 12 times
Joined: May 29, 2018 8:42 pm
Contact:

Re: RestorePoints for Veeam Agent backup jobs

Post by Vek17 » Jan 31, 2019 5:34 pm

You can attempt to pull from the static object methods and you can probably get the backups returned. I don't have an environment to check in but it would be my guess. If that doesn't work then there is probably something more obscure that will.

[Veeam.Backup.Core.CBackup]::GetAll()

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests