Veritas NetBackup™ Commands Reference Guide
- Introduction
- Appendix A. NetBackup Commands
Name
mklogdir — creates log directories with the recommended permissions.
SYNOPSIS
[-create] [-fixFolderPerm] [-dryrun] [-list] [logdirname(s)]log directory name] [-user username]
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
DESCRIPTION
mklogdir creates all the NetBackup log directories for a user, with the recommended permissions.
OPTIONS
- -create
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.
- -list
Displays a list of all the NetBackup log directories along with the details about the permissions set.
- -fixFolderPerm
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.
- -dryrun
Allows the user to review the changes before they are made. If you specify this option, no changes are made to the system.
- -help
Displays the possible options for the mklogdir command.
- logdirname
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.
- -user username
Creates the user folders for the required process log directory. Use this option only for non-root users or users who are not part of administrator groups.
If the user is local user or system user, only username should be used. If the user is part of any domain, specify the user name in this format: "domain_short_name\username". Be aware you must enclose the user name in double quotes (").
EXAMPLES
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
SEE ALSO
See bpgetdebuglog.