PowerShell script exchange
Post Reply
Atha07
Lurker
Posts: 2
Liked: never
Joined: Aug 31, 2021 12:18 pm
Full Name: Jonathan Buitrago Valencia
Contact:

How to remove corrupt files in AVA with PowerShell?

Post by Atha07 »

Hello there,

This is my first consultation in the forum, I thank you in advance for the help you can give me.

Currently we need to delete the corrupt files that we have in the AVA repository, but since there are too many it is not practical to do it manually from the Veeam 10 console.

Could someone give me an example of a PowerShell that we can launch to remove only the corrupt? We have tried the following:

Code: Select all

Get-VBRBackup -Name "Job Name" | Get-VBRRestorePoint | where-object {$_.IsCorrupted -eq $true}| Remove-VBRRestorePoint
But it removes all data held for that job, including consistent files.


Thank you very much, greetings.
Andreas Neufert
VP, Product Management
Posts: 7080
Liked: 1511 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: How to remove corrupt files in AVA with PowerShell?

Post by Andreas Neufert »

I would open a support ticket and ask our support team to do it. I guess they have specific automation for this scenario.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to remove corrupt files in AVA with PowerShell?

Post by oleg.feoktistov »

Hi Jonathan,

Are you asking about the API analogue of this functionality? If you are, I must note that it is not yet available through Powershell, but we plan to implement it in the next minor version.

Thanks,
Oleg
Atha07
Lurker
Posts: 2
Liked: never
Joined: Aug 31, 2021 12:18 pm
Full Name: Jonathan Buitrago Valencia
Contact:

Re: How to remove corrupt files in AVA with PowerShell?

Post by Atha07 »

Hello

Thanks for the feedback.

The question is if someone can provide me with the commands to launch from PowerShell, to make it more automated and not have to remove corrupt retention point by point from the Veeam console.


All the best.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to remove corrupt files in AVA with PowerShell?

Post by oleg.feoktistov »

As of now, this functionality is not yet available via Powershell, but we have it as a feature request. Thanks!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 10 guests