Configuring the legacy log rotation
You can specify the maximum file size for a legacy log and the maximum number of log files to retain.
See About log retention in NetBackup.
In the case of legacy logging, NetBackup uses the bp.conf configuration file to set the maximum size of a log file. Use the bpsetconfig command to configure the following bp.conf parameters to do the log settings: MAX_LOGFILE_SIZE and MAX_NUM_LOGFILES
The default value for MAX_LOGFILE_SIZE is 500 MB and the default value for MAX_NUM_LOGFILES is 0 (infinite).
To configure the legacy log rotation
- To change the maximum file size or the maximum number of log files per directory, use the MAX_LOGFILE_SIZE and the MAX_NUM_LOGFILES options. These options are part of the bpsetconfig command that is located in the following directory:
Windows
install_pathNetBackup\bin\admincmd\
UNIX
/usr/openv/netbackup/bin/admincmd/
Use the following UNIX example to set the maximum file size to 512 MB and the maximum number of log files per log directory to 4:
#bpsetconfig
bpsetconfig> MAX_LOGFILE_SIZE = 512
bpsetconfig> MAX_NUM_LOGFILES = 4
bpsetconfig>
CTRL-D
A complete description of bpsetconfig is in the NetBackup Commands Reference Guide.