Skip to content

Instantly share code, notes, and snippets.

@tdewin
Created November 16, 2021 13:23
Show Gist options
  • Select an option

  • Save tdewin/fa64aead406cf6c594908cf2244be2f0 to your computer and use it in GitHub Desktop.

Select an option

Save tdewin/fa64aead406cf6c594908cf2244be2f0 to your computer and use it in GitHub Desktop.
files in object storage for veeam vbr
#Run as admin
$name = "VMs to AWS"
Connect-VBRServer -server localhost
$backup = Get-VBRBackup -name $name
$rps = $backup | Get-VBRRestorePoint | Sort-Object -Property CreationTime
$cloudstat = @()
foreach ($rp in $rps) {
$storage = $rp.GetStorage()
$cloudstat += New-Object -TypeName psobject -Property @{date=$rp.CreationTime.Date.ToString();filename=$storage.PartialPath.GetFileName().element;local=$storage.IsContentInternal;cloud=$storage.IsContentExternal}
}
$cloudstat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment