PowerShell script exchange
Post Reply
Yuya
Enthusiast
Posts: 81
Liked: 2 times
Joined: Jan 30, 2013 9:32 am
Contact:

"Get-VBRFilesInRestorePoint" support replication jobs?

Post by Yuya »

Hello,

Does the "Get-VBRFilesInRestorePoint" command support replication jobs?

The PowerShell reference guide says the following.
https://helpcenter.veeam.com/docs/backu ... tml?ver=95
----
Detailed Description
This cmdlet returns files in a selected restore point.
With this cmdlet, you can get files in restore points created by all types of jobs: backup jobs, backup copy jobs, replication jobs, vCD jobs and Endpoint backup jobs (for Endpoint backups, only volume level backups).
You can get the list of all files in a selected restore point or look for instances directly by name.
----

However, if I specify a restore point for the replication job, the following error occurs.
"fukumi01" is the VM that executed the replication job.
----

Code: Select all

PS C:\Users\Administrator> Get-VBRRestorePoint -Name "fukumi01" | Sort-Object -Descending {$_.creationtime} | Select -First 1 | Get-VBRFilesInRestorePoint
Get-VBRFilesInRestorePoint : Invoke failed. Agent: 'aa8594c4-7eeb-447b-a00c-4f32e72c13ef', Command: 'DataTransfer.Resto
reText', parameters: {(EStringArray) Links[]=[veeamfs:0:/summary.xml@E:\Backup\fukumi01,](EBoolean) Option.Remote=false
; }
発生場所 行:1 文字:102
+ ... ding {$_.creationtime} | Select -First 1 | Get-VBRFilesInRestorePoint
+                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-VBRFilesInRestorePoint], CAgentException
    + FullyQualifiedErrorId : Veeam.Backup.Common.CAgentException,Veeam.Backup.PowerShell.Cmdlets.GetVBRFilesInRestore
   Point
----
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: "Get-VBRFilesInRestorePoint" support replication jobs?

Post by veremin »

Hmm, looks strange. I don't have a console at hand, but can you split your codes into several lines (just to check what's happening and where).

Something like this:

1) Make sure that correct restore point is returned, and it's a single entity, not an array:

Code: Select all

$RestorePoint = Get-VBRRestorePoint -Name "fukumi01" | Sort-Object -Descending {$_.creationtime} | Select -First 1
$RestorePoint 
2) Check whether files are returned properly:

Code: Select all

Get-VBRFilesInRestoePoint -RestorePoint $RestorePoint
Thanks.
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 23 guests