cancel
Showing results for 
Search instead for 
Did you mean: 

Edit Incremental Backup Jobs (Command Line)

ajhstn
Level 4

Hey,

how can i use the cli to edit one or many incremental jobs, i specificially want to change the retenion period for all of my incremental backup jobs.

I am thinking something along these lines, but i am not yet successfull.

Get-BEBackupDefinition -Name "Name" | Set-BEIncrementalBackupTask

Thank you for your help.

Ajhstn

2 ACCEPTED SOLUTIONS

Accepted Solutions

pkh
Moderator
Moderator
   VIP    Certified

You need to save the changes like so

Get-BEBackupDefinition -Name "Name" | Set-BEIncrementalBackupTask | Save-BEBackupDefinition

You would need to have the appropriate switches for each of the cmdlets.

View solution in original post

pkh
Moderator
Moderator
   VIP    Certified

Have you tried the DiskStorageKeepForHours parameter for the Set cmdlet?

If you are using tape or disk cartridges, then you only need to modify the OPP in the media set.

View solution in original post

3 REPLIES 3

pkh
Moderator
Moderator
   VIP    Certified

You need to save the changes like so

Get-BEBackupDefinition -Name "Name" | Set-BEIncrementalBackupTask | Save-BEBackupDefinition

You would need to have the appropriate switches for each of the cmdlets.

ajhstn
Level 4

Hi Pkh,

thank you for your reply.  I understand i need to pipe to Save-BE... but my question is which is the correct cmdlet and parameter to use to change the retenion period for an incremental job?

pkh
Moderator
Moderator
   VIP    Certified

Have you tried the DiskStorageKeepForHours parameter for the Set cmdlet?

If you are using tape or disk cartridges, then you only need to modify the OPP in the media set.