Forum Discussion

ajhstn's avatar
ajhstn
Level 4
12 years ago

Edit Incremental Backup Jobs (Command Line)

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

  • 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.

  • 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.

  • 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.

  • 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?

  • 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.