Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ Administrator's Guide, Volume I
  3. Section VIII. Monitoring and reporting
  4. Monitoring NetBackup activity
  5. About the jobs database
  6. About the BPDBJOBS_OPTIONS environment variable
Veritas NetBackup™ Administrator's Guide, Volume I

About the BPDBJOBS_OPTIONS environment variable

The BPDBJOBS_OPTIONS environment variable provides a convenient method to set job retention options with a script. The bpdbjobs process determines how long to retain a job by checking for the BPDBJOBS_OPTIONS environment variable.

If present on Windows: BPDBJOBS_OPTIONS overrides the registry key settings.

If present on UNIX: BPDBJOBS_OPTIONS overrides the bp.conf settings. To customize the output of bpdbjobs, add a BPDBJOBS_COLDEFS entry to the bp.conf file for each column you want to appear in the output.

The following options can be used to determine the length of time NetBackup retains jobs. The options should be entered in lower case in the BPDBJOBS_OPTIONS environmental variable.

Table: BPDBJOBS_OPTIONS environment variable options

Option

Description

-keep_hours hours

Use with the -clean option to specify how many hours bpdbjobs keeps unsuccessfully completed jobs. Default: 78 hours.

To keep both successful and both failed jobs longer than the default of 78 hours, keep_successful_hours must be used with keep_hours.

-keep_successful_hours hours

Use with the -clean option to specify how many hours bpdbjobs keeps successfully completed jobs. The number of hours must be less than or equal to keep_hours.

Values outside the range are ignored. Default: 78 hours.

-keep_days days

Use with the -clean option to specify how many days bpdbjobs keeps completed jobs. Default: 3 days.

-keep_successful_days days

This value must be less than the -keep_days value.

Use with the -clean option to specify how many days bpdbjobs keeps successfully completed jobs. Default: 3 days.

In the following example, a batch file (cleanjobs.bat) was used on a Windows server. You can copy the script directly from this document and change as needed.

  • The first line specifies how long to keep unsuccessful jobs (24 hours) and successful jobs (five hours).

  • The second line specifies the path to the bpdbjobs command. Indicate the correct location of bpdbjobs in the .bat file. In this example, NetBackup was installed in the default location:

    set BPDBJOBS_OPTIONS= -keep_hours 24 -keep_successful_hours 5
    C:\progra~1\VERITAS\NetBackup\bin\admincmd\bpdbjobs -clean

    The same script on a UNIX server would look like the following:

    setenv BPDBJOBS_OPTIONS "-keep_hours 24 -keep_successful_hours 5 -clean"
    /usr/openv/netbackup/bin/admincmd/bpdbjobs ${*}

You can store the .bat file anywhere, as long as it is run from the appropriate directory.

In the following example, the administrator created and stored cleanjobs.bat in C:\Program Files\VERITAS\NetBackup.

Figure: Running cleanjobs.bat on Windows

Running cleanjobs.bat on Windows

Feedback

Was this page helpful?
Previous

Changing the default bpdbjobs_options values

Next

bpdbjobs command line options

Feedback

Was this page helpful?