PowerShell script exchange
Post Reply
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Get-VBRBackupCopyJob defragment and compact

Post by matteu »

Hello,

How to get the value for Maintenance -> Defragment and compact full backup file with backup copy job with Get-VBRBackupCopyJob
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Get-VBRBackupCopyJob defragment and compact

Post by oleg.feoktistov »

As with the deleted items retention policy, we cannot get defragment and compact options with Get-VBRBackupCopyJob cmdlet. Use thr workaround with Get-VBRJob:

Code: Select all

$job = Get-VBRJob -Name "Backup Copy Job 1"
$job.Options.GenerationPolicy.EnableCompactFull 

# and other properties inside $job.Options.GenerationPolicy that say *Compact Full*
Best regards,
Oleg
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Get-VBRBackupCopyJob defragment and compact

Post by matteu »

Hello,

Thanks, I hope soon on the new cmdlet :)
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests