PowerShell script exchange
Post Reply
klicktechuser
Lurker
Posts: 1
Liked: never
Joined: Jan 29, 2018 3:37 pm
Full Name: KlickTechUser
Contact:

Change Retention Policy of a job using PS

Post by klicktechuser »

Hi guys,

Has anyone ever needed to change the retention policy of a job (increase, decrease restore points) using a PowerShell script?

I need to increase the restore points on jobs A,B,C before I run job D. (to ensure no merge occur while job D runs)
Then I need to decrease the policies back to normal once job D finishes so incremental will then get merged... Sounds simple?

I was advised by a Veeam Integration Specialist that this was doable using PS but he was only able to point me to this forum as opposed to actually provide assistance..

Please advise!
veremin
Product Manager
Posts: 20415
Liked: 2305 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Change Retention Policy of a job using PS

Post by veremin »

Then I need to decrease the policies back to normal once job D finishes so incremental will then get merged
Merge is a part of job execution process. So, unless you run jobs A, B and C after D finishes, no merge will happen.

Thought it might be worth clarifying that before we dig deep into scripting.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests