|
|
< Previous | Next > |
| Product: NetBackup System Administrator's Help | |
Changing the Default TemporarilyIn the absence of a bp.conf entry, the bpdbjobs process determines how long to retain a job by checking the following locations in the order indicated:
The bpdbjobs command interacts with the jobs database to delete or move done job files. The command line options are the first location that the bpdbjobs process checks for instructions on retaining jobs. The -clean option causes bpdbjobs to delete done jobs older than a specified time period: bpdbjobs -clean [ -M <master servers> ] bpdbjobs -clean -keep_hours 720 For a complete description of the bpdbjobs command, see NetBackup Commands for . BPDBJOBS_OPTIONS Environment Variable The BPDBJOBS_OPTIONS environmental variable provides a convenient way to set job retention options using a script. The options listed below 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:
Use with the -clean option to specify how many hours bpdbjobs keeps unsuccessful done jobs. Default: 72 hours. To keep both successful and failed jobs longer than the default of 72 hours, keep_successful_hours must be used in conjunction with keep_hours Use with the -clean option to specify how many hours bpdbjobs keeps successful done jobs. The number of hours can range from 3 to 720 but must be less than or equal to keep_hours. Values outside the range are ignored. Default: 72 hours. Use with the -clean option to specify how many days bpdbjobs keeps done jobs. Default: 3 days. Use with the -clean option to specify how many days bpdbjobs keeps successful done jobs. Default: 3 days. This value must be less than the -keep_days value. In the following example, a script (cleanjobs) was created which can be copied directly from this document, then changed according to your needs.
setenv BPDBJOBS_OPTIONS "-keep_hours 24 -keep_successful_hours 5 -clean" /usr/openv/netbackup/bin/admincmd/bpdbjobs ${*} The .bat file can be stored anywhere, as long as it is run from the appropriate directory. |
| ^ Return to Top | < Previous | Next > |
| Product: NetBackup System Administrator's Help | |
|
VERITAS Software Corporation
www.veritas.com |