PowerShell script exchange
Post Reply
evilaedmin
Expert
Posts: 159
Liked: 24 times
Joined: Jul 26, 2018 8:04 pm
Full Name: Eugene V
Contact:

Feature request: cmdlets or documented methods for Powershell-based interaction similar to "Files" pane.

Post by evilaedmin » 1 person likes this post

Greetings. HPE provides the StoreOnce Catalyst Copy Utility for interacting with StoreOnce catalyst items independent of backup vendor.

Apparently (allegedly) Veeam isn't setting a needed flag on the catalyst items so the Catalyst Copy Utility refuses to interact with items generated by Veeam.

This makes it impossible to use the only user-accessible scriptable method for moving or deleting Veeam-generated Catalyst items

Veeam B&R does however present the Files pane which clearly allows listing, sorting, and deleting of Catalyst items created by Veeam.

This request is to provide a supported documented powershell cmdlet or object methods to allow for scripting to interact with Catalyst items created by Veeam, same as the Files pane (browse, list, sort, delete, copy, paste).

oleg.feoktistov
Veeam Software
Posts: 551
Liked: 197 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Feature request: cmdlets or documented methods for Powershell-based interaction similar to "Files" pane.

Post by oleg.feoktistov » 1 person likes this post

Hi Eugene,

Thank you for your feedback! I noted it and will discuss it with my colleagues.

All the best,
Oleg

evilaedmin
Expert
Posts: 159
Liked: 24 times
Joined: Jul 26, 2018 8:04 pm
Full Name: Eugene V
Contact:

Re: Feature request: cmdlets or documented methods for Powershell-based interaction similar to "Files" pane.

Post by evilaedmin »

Hello Oleg,

Is there any chance your colleagues could give me an unsupported hint, similar to as in for example, this thread, as to how to do a delete operation? I believe I'm on the right track identifying the

Code: Select all

storeonce://
filenames from the .GetStorage() (or findStorage()? I am without my notes at the moment.) method of each restore point. All I want to do is delete a couple of thousand restore points without having to manually do it in the Files pane.

Thank you kindly!

jhoughes
Veeam Software
Posts: 215
Liked: 72 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Austin, TX
Contact:

Re: Feature request: cmdlets or documented methods for Powershell-based interaction similar to "Files" pane.

Post by jhoughes »

Unfortunately, the delete method will delete ALL restore points for a VM or chain. You cannot select a subset or individuals points to be deleted.
Husband, Father, Solutions Architect, Geek Extraordinaire | @AustinVMUG & @ATXPowerShell leader | VMUG US South Regional Champion | VMware vExpert | Cisco Champion

evilaedmin
Expert
Posts: 159
Liked: 24 times
Joined: Jul 26, 2018 8:04 pm
Full Name: Eugene V
Contact:

Re: Feature request: cmdlets or documented methods for Powershell-based interaction similar to "Files" pane.

Post by evilaedmin »

Hello Joe,

I agree that seems to be the documented behavior. But sure there is an unsupported object or class method that will delete just the file by name?

evilaedmin
Expert
Posts: 159
Liked: 24 times
Joined: Jul 26, 2018 8:04 pm
Full Name: Eugene V
Contact:

Re: Feature request: cmdlets or documented methods for Powershell-based interaction similar to "Files" pane.

Post by evilaedmin » 1 person likes this post

oleg.feoktistov wrote: Dec 10, 2019 2:18 pm Hi Eugene,

Thank you for your feedback! I noted it and will discuss it with my colleagues.

All the best,
Oleg
Hello Oleg. Looks like I've been looking for the types:

Code: Select all

Veeam.Backup.Core.CStoreOnceFileCommanderClient
Which I can create with:

Code: Select all

$repoAccessor = [Veeam.Backup.Core.CRepositoryAccessorFactory]::Create($Repository)
Where $Repository is Get-VBRBackupRepository.

So for any $RestorePoint output of Get-VBRRestorePoint:

Code: Select all

$repoAccessor.FileCommander.DeleteFile($RestorePoint.FindStorage().FilePath.ToString())
Now I need to purge these from the configuration database as well.

Hope this helps others if they end up in this thread from Google.

oleg.feoktistov
Veeam Software
Posts: 551
Liked: 197 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Feature request: cmdlets or documented methods for Powershell-based interaction similar to "Files" pane.

Post by oleg.feoktistov »

Hi Eugene! Thank you for posting this!

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests