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™ Commands Reference Guide
  3. Appendix A. NetBackup Commands
  4. mklogdir
Veritas NetBackup™ Commands Reference Guide

Name

mklogdir — creates log directories with the recommended permissions.

SYNOPSIS

mklogdir [-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

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.

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.

Feedback

Was this page helpful?
Previous

manageClientCerts

Next

nbauditreport

Feedback

Was this page helpful?