Skip to main content
Answer

Retain jobs with Qoperation

  • March 8, 2022
  • 5 replies
  • 120 views

Forum|alt.badge.img+4

Hi Team,

Do we have any command to extend the retention for multiple jobs at a time. We have the task to extend the retention of multiple jobs (like 100 jobs) and is there any easy we can do it.

Best answer by Mike Struening

@naraharsha , we don’t have a script on hand, though this doc should help you create one:

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_foreach?view=powershell-7.2

If you have a question or comment, please create a topic

5 replies

Forum|alt.badge.img+14
  • Novice
  • March 8, 2022

Hi @naraharsha ,

 

Honestly I do not know, but I would be interested to read the means to do it, if any.

Do you need to do it for like 100 jobs and for all copies of each job ?

Or for only one copy of each job ?

 

Regards,

 

Laurent.


Forum|alt.badge.img+4
  • Author
  • Novice
  • March 8, 2022

@Laurent 

I want it for jobs which are in one copy only.


Forum|alt.badge.img+1
  • Vaulter
  • March 8, 2022

Hello @naraharsha,

Please refer to the following documentation:

https://documentation.commvault.com/11.24/expert/11409_qoperation_jobretention.html

 

This will only do one job at a time, but you should be able to use a foreach loop in powershell to iterate through an input file which lists all of the jobs that you need to extend the retention for.

 


Forum|alt.badge.img+4
  • Author
  • Novice
  • March 9, 2022

@blistwan Thankyou.

Is there a powershell script to automate this work by using foreach loop?

 

 


Mike Struening
Vaulter
Forum|alt.badge.img+22

@naraharsha , we don’t have a script on hand, though this doc should help you create one:

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_foreach?view=powershell-7.2