Forum Discussion

liuyang's avatar
liuyang
Level 6
15 years ago
Solved

Kill backup job when backup window is closed

Hi, I am looking for methods to kill backup jobs when backup windows is closed. My master server is NBU 7.0.1 on windows 2008 r2.

I have some policies sometimes run till backup window is closed. For example, one backup job is scheduled to run at 9pm daily. The backup window is 9pm to 12am. However, sometimes maybe due to the size of the backup data, it only completes the backup job at 1am or even 2am.

My question is: is there a way in NBU to configure so that if the backup windows is closed, the backup job which is still running will be killed automatically?

The reason that I want to do this is because I have some database clients which backup windows is limited to given timing. If backup jobs run beyond the backup window, it may corrupt the database.

Thanks.

  • Why on earth would you want to kill running backups? Netbackup is designed to complete backups once started.

    The backup window that you specify is a START window, not a 'backup duration' window. In other words, the backup window that you specify is the time during which you allow NBU to START the backup. As long as the backup can start before the backup window closes, NBU will complete it. If you want backups to finish earlier, you probably need to start them earlier.

    There is no way that NBU wil automatically kill backups. You will have to write scripts or get an operator to do that...

  • I think the time you are refering is START JOB AFETR and BEFORE.

    According to your settings job will start after 9pm and before 12 am.

    This time period is called TIME WINDOW.

    My question is: is there a way in NBU to configure so that if the backup windows is closed, the backup job which is still running will be killed automatically?

    As per my knowledge one can not configure a backup window in any backup software. Only start times you can control.

    Regards.

  • Thanks for the clarification. Then in Netbackup, is there a way to automatically kill the backup job if the job runs beyond the time window?

  • If the backup job failed to start in the time window, NBU will not start it outside the time window.

    But completion of job will not come into picture here.

    Regards.

    /*EDIT

    Some scripts may do the job for you, but sorry No Idea.

    */

  • Why on earth would you want to kill running backups? Netbackup is designed to complete backups once started.

    The backup window that you specify is a START window, not a 'backup duration' window. In other words, the backup window that you specify is the time during which you allow NBU to START the backup. As long as the backup can start before the backup window closes, NBU will complete it. If you want backups to finish earlier, you probably need to start them earlier.

    There is no way that NBU wil automatically kill backups. You will have to write scripts or get an operator to do that...