How to prevent backup jobs from starting while running job complete so that maintenance can occur once all jobs have completed?

Article: 100021232
Last Published: 2025-01-13
Ratings: 2 0
Product(s): NetBackup & Alta Data Protection

Description

How to prevent backup jobs from starting while running job complete so that maintenance can occur once all jobs have completed?

  1. To prevent scheduled backups from starting:

    # /usr/openv/netbackup/bin/admincmd/nbpemreq -suspend_scheduling

    • To check scheduled backups are suspended / disabled:

      # /usr/openv/netbackup/bin/admincmd/nbpemreq -subsystems screen all | grep -i Scheduling | grep disabled
      Scheduling disabled via external command
      #

  2. To prevent user initiated jobs from starting:

    # /usr/openv/netbackup/bin/admincmd/bprdreq -terminate

    • To check this, confirm that the bprd process is not running.

      # /usr/openv/netbackup/bin/bpps -a | grep bprd
      #
       (no output should be returned)

  3. To resume processing of both user initiated and scheduled jobs:

    # /usr/openv/netbackup/bin/initbprd
    # /usr/openv/netbackup/bin/admincmd/nbpemreq -resume_scheduling

    • To check user initiated will start, confirm that the bprd process is running.

      # /usr/openv/netbackup/bin/bpps -a | grep bprd
      root      12345       1 0 Dec28 tty1      00:00:24 /usr/openv/netbackup/bin/bprd
      #

    • To check scheduled backups are resumed / enabled:

      # /usr/openv/netbackup/bin/admincmd/nbpemreq -subsystems screen all | grep -i Scheduling | grep enabled
      Scheduling enabled
      #

Note: On Windows machines, the commands are in the install_path\NetBackup\bin\ and install_path\NetBackup\bin\admincmd\ directories respectively, plus the "grep" or "grep -i" can be replaced with "findstr".

Please be aware that terminating bprd while Oracle or SAP backup jobs are active will result in the indirect failure of the jobs. The Oracle RMAN and SAP brbackup utilities do not consider a backup operation complete until both the application backup job has completed and a subsequent image lookup has been successful. If bprd is terminated, the image lookup will fail and Oracle or SAP will discard the information for those backups. The next backup for the instances will include a second copy of the data.

Was this content helpful?