get-VBRFilesInRestorePoint freeze

PowerShell script exchange

get-VBRFilesInRestorePoint freeze

Veeam Logoby BigGeorge » Tue Jan 08, 2013 11:57 pm

hi all,

I've a problem with Get-VBRFilesInRestorePoint, this is my script (Veeam 6.5.0.106)

Code: Select all
$VeeamJob =  Get-VBRJob | where { $_.Name -eq "Test01" }
$MyRestorePoint = Get-VBRBackup | where { $_.JobId -eq $VeeamJob.Id } | Get-VBRRestorePoint | sort CreationDate -Descending | select -First 1
$MyFiles = Get-VBRFilesInRestorePoint $MyRestorePoint


The script freeze at the last step ...

Anyone can help me?

The goal is to retrieve the backup files (to copy them)

Thank you
Giorgio
BigGeorge
Veeam ProPartner
 
Posts: 27
Liked: 4 times
Joined: Tue Jan 31, 2012 2:00 pm
Location: Italy
Full Name: Giorgio Colucci

Re: get-VBRFilesInRestorePoint freeze

Veeam Logoby tsightler » Wed Jan 09, 2013 12:48 am

It works fine for me, but I'm not sure this is exactly what you are looking for anyway. The cmdlet will list the files that are stored in the backup chain, thus it will list the .vmx, .vmdk, etc. It sounds like you are simply wanting to copy the backup files themselves (i.e. the VBK/VIB files), not the files that are contained within those backup files.

Also, unless you have only a single VM in each job the above script will be somewhat "random" since it will only return the very last OIB in the job, which, for a job with multiple VMs, would only be the very last VM in the job.
tsightler
Veeam Software
 
Posts: 4775
Liked: 1742 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: get-VBRFilesInRestorePoint freeze

Veeam Logoby BigGeorge » Wed Jan 09, 2013 4:23 pm

Thank you,
you're right: after reboot Veeam repository server the command work well, but this command retrieve the vmWare files that the job has saved, not the backup files!

Thank you
Giorgio
BigGeorge
Veeam ProPartner
 
Posts: 27
Liked: 4 times
Joined: Tue Jan 31, 2012 2:00 pm
Location: Italy
Full Name: Giorgio Colucci

Re: get-VBRFilesInRestorePoint freeze

Veeam Logoby Sethbartlett » Fri Jan 11, 2013 12:58 am

if you are needing to see the backup files, use Get-VBRBackup and do a | GM on the object, it should have a method that allows you to get the backup files.

So:
Get-VBRBackup -name "my backup name" | gm

Read the list and you should see one.
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 4 guests