PowerShell script exchange
Post Reply
Jabe
Novice
Posts: 8
Liked: 1 time
Joined: Feb 06, 2018 7:08 am
Contact:

RestorePoints for Veeam Agent backup jobs

Post by Jabe »

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
Product Manager
Posts: 5796
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: RestorePoints for Veeam Agent backup jobs

Post by nielsengelen »

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)
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
Dima P.
Product Manager
Posts: 14716
Liked: 1703 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. »

Jabe,

Try this:

Code: Select all

$backup = Get-VBRBackup -name "YourAgentBackupJobName" 
Get-VBRRestorePoint -backup $backup
Jabe
Novice
Posts: 8
Liked: 1 time
Joined: Feb 06, 2018 7:08 am
Contact:

Re: RestorePoints for Veeam Agent backup jobs

Post by Jabe »

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: 49
Liked: 15 times
Joined: May 29, 2018 8:42 pm
Contact:

Re: RestorePoints for Veeam Agent backup jobs

Post by Vek17 »

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 17 guests