Veritas NetBackup™ Commands Reference Guide
- Appendix A. NetBackup Commands
mklogdir — creates log directories with the recommended permissions.
[-create] [-fixFolderPerm] [-dryrun] [-list] [logdirname(s)]log directory name]
On UNIX systems, the directory path to this command is /usr/openv/netbackup/logs
On Windows systems, the directory path to this command is install_path\NetBackup\logs
mklogdir creates all the NetBackup log directories for a user, with the recommended permissions.
Creates all NetBackup log directories with the recommended permissions as identified by Veritas. Create is the default option in case no other option is specified.
Displays a list of all the NetBackup log directories along with the details about the permissions set.
Sets the recommended permissions for the already existing NetBackup log directories, if the permissions are not already set. This scenario refers to the use cases in case of NetBackup version upgrade.
Allows the user to review the changes before they are made. If you specify this option, no changes are made to the system.
Displays the possible options for the mklogdir command.
Specifies a list of one or more space-separated log directories on which an action needs to be performed. If no log directories are specified, then the action is performed on all the log directories.
Example 1 - Create all the NetBackup log directories for a user, with the recommended permissions.
# mklogdir -create
Example 2 - Create the
admin and the
bpdbm log directories with the recommended permissions.
# mklogdir admin bpdbm
Example 3 - Examine all the existing log directories and set the permissions to those directories which do not have the recommended permissions. This command needs to be used after NetBackup version upgrade to set the recommended permissions for all the existing log files.
# mklogdir -fixFolderPerm
Example 4 - Examine all the existing log directories and display the changes that need to be made to get the recommended permissions.
# mklogdir -fixFolderPerm -dryrun