Hello,
How is it possible to get backup copy size like it was with the Get-VBRBackupCopyJob cmdlet ?
-
- Veeam Legend
- Posts: 824
- Liked: 128 times
- Joined: May 11, 2018 8:42 am
- Contact:
-
- Veeam Software
- Posts: 2011
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Get-VBRBackupCopyJob backup copy size
matteu,
If you are after determining the actual size of a backup made with backup copy job, you do that the same way you would with a primary backup. Meaning, gathering the sizes of each storage and summing them all:
Best regards,
Oleg
If you are after determining the actual size of a backup made with backup copy job, you do that the same way you would with a primary backup. Meaning, gathering the sizes of each storage and summing them all:
Code: Select all
$job = Get-VBRBackupCopyJob -Name 'Backup Copy Job 1'
$backup = Get-VBRBackup | where {$_.JobId -eq $job.Id}
$storages = $backup.GetAllChildrenStorages()
$totalSize = $null
foreach ($storage in $storages) {
$totalSize += $storage.Stats.BackupSize
}
$totalRounded = [Math]::Round($totalSize/1GB, 2)
$backup | select Name, @{n='Size';e={$totalRounded}}
Oleg
-
- Veeam Legend
- Posts: 824
- Liked: 128 times
- Joined: May 11, 2018 8:42 am
- Contact:
Re: Get-VBRBackupCopyJob backup copy size
Thanks for your answer.
Before this new cmdlet, I did this :
(Get-VBRJob -Name "xxxx").Info.Includedsize / 1GB -as [INT]
Now, the only way is what you mentionned ?
Before this new cmdlet, I did this :
(Get-VBRJob -Name "xxxx").Info.Includedsize / 1GB -as [INT]
Now, the only way is what you mentionned ?
Who is online
Users browsing this forum: No registered users and 12 guests