Created
November 16, 2021 13:23
-
-
Save tdewin/fa64aead406cf6c594908cf2244be2f0 to your computer and use it in GitHub Desktop.
files in object storage for veeam vbr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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