Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backup Window

Status
Not open for further replies.

art15t

MIS
Apr 8, 2002
77
GB
Can anyone tell me if CommVault has the ability to terminate a backup if it does not finish within a time window. As I understand it, it merely pauses until the backup window starts again and then resumes. Not much good to me as I'm performing a cold backup of DB locations and need to have them back up by 7am next morning. Or perhaps this is beyond CommVault and can only be killed from the OS side via a cron/scheduler job
 
It certainly can be killed. I run a simple batch script which kills every job on the specified media agent every morning at the same time. I have multiple locations where sometimes the tech forgets to insert a tape, and I don't want the job to run into the day when they remember the next morning. Here is the command for the batch file:

"C:\Program Files\CommVault Systems\Galaxy\Base\gxcmd.exe" -cmd jobcontrol -commcell net-com1.beazer.net -port 8401 -logonid "********************" -operation "kill" -cl "atl" -clientType "MA"

A few things to note: to get the logon id, you will need to save a job as a script - any job will do. I got mine from saving a backup job. Where mine says "atl" you will need to change it to the media agent where you want the jobs killed. If you have multiple media agents, just copy and past it multiple times and change the media agent name. Then all you need to do is save it as a .bat file and schedule it to run whenever you like. It's simple, but works great for me. Hope this helps.
 
Thanks for that JG5. I was hoping that it could be handled from within commvault but was pretty much expecting your answer as we have "Backups pre-empt other backups" set globally. I read in the documentation somewhere that you can save the backup to file and then insert that line into a script which can then be scheduled at the appropriate time.

Thanks again, I'll be giving it a try shortly!

ART
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top