PowerShell script exchange
Post Reply
Etilimos30
Novice
Posts: 8
Liked: never
Joined: Jun 15, 2022 12:11 pm
Full Name: Etilimos
Contact:

Get backup in "file"

Post by Etilimos30 »

Hello,

I would like to clean up my StoreOnce bays, and for that I would like to get the list of all the files present in "file" from the VBR server.

Image

I need to display the name of the file and the date of last modification.

I am on Veeam version 11.0.1.1261 and I am using StoreOnce arrays with a Catalyst repository.

Can you help me with this please?

Thanks in advance.
david.domask
Veeam Software
Posts: 1933
Liked: 469 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Get backup in "file"

Post by david.domask »

Hi @Etilimos30

Can I ask, you suspect there are point you suspect are on the Storeonce but _not_ visible in Veeam?

If you just want to know about points that do show in Veeam, use Get-VBRBackupFile to check the file creation date and name.

If you think there are files outside of Veeam still present on the Storeonce, I'm afraid there's not a supported way to do this.

You can use the unsupported method here to get the files on a given Catalyst Store: post453663.html#p453663
David Domask | Product Management: Principal Analyst
Etilimos30
Novice
Posts: 8
Liked: never
Joined: Jun 15, 2022 12:11 pm
Full Name: Etilimos
Contact:

Re: Get backup in "file"

Post by Etilimos30 »

Hi @david.domask,

No the files are visible from Veeam, but my platform has a lot of files (I backup more than 250 servers) and I can't afford to check them one by one.

That's why I'm looking for a way to show me the files that have not been modified for more than 6 months.
david.domask
Veeam Software
Posts: 1933
Liked: 469 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Get backup in "file"

Post by david.domask »

Got it. @Etilimos30 then I really recommend the cmdlet I mentioned.
David Domask | Product Management: Principal Analyst
Etilimos30
Novice
Posts: 8
Liked: never
Joined: Jun 15, 2022 12:11 pm
Full Name: Etilimos
Contact:

Re: Get backup in "file"

Post by Etilimos30 »

Thank you, but it asks me for the name of a backup as input, except precisely I would like it to ask me everything.

Sorry I'm not very comfortable with veeam powershell commands.
david.domask
Veeam Software
Posts: 1933
Liked: 469 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Get backup in "file"

Post by david.domask »

Hi @Etilimos30

Sure, I can get that.

Fetch all backups where RepositoryID = the ID of the storeonce in question.

Then loop over the backups and run Get-VBRBackupFile.

$repo = Get-VBRBackupRepository -Name 'name of the storeonce'
$Backups = Get-VBRBackup | Where-Object {$_.RepositoryID -eq $repo.id}
$AllBackups = @()
Foreach($B in $Backups){
$Files = Get-VBRBackupFile -Backup $B
$AllBackups += $Files
}
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests