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. NetBackup™ Security and Encryption Guide
  3. Section III. Encryption of data at rest
  4. NetBackup key management service
  5. Command line interface (CLI) commands
  6. About exporting and importing keys from the KMS database
  7. Exporting keys
NetBackup™ Security and Encryption Guide

Exporting keys

The -export command helps to export keys and keys groups across domains. The following list contains important information about exporting keys and key groups:

  • Keys are always exported along with their key group.

  • Keys and key groups are exported in an encrypted key container (file) on the host where the Key Management Service (KMS) utility (nbkmsutil) is executed.

    The key container is pass phrase protected.

    Note:

    The same pass phrase must be provided when you want to import the keys and key groups.

  • Multiple ways of specifying the export contents are to select specific key groups or to selectively export keys.

Use the -export command as specified:

nbkmsutil -export -path <secure_key_container>

[ -key_groups <key_group_name_1 ...> | -key_file <key_file_name> ]

By default, the entire keystore is exported.

The -path command refers to a fully qualified path where the secure key container is stored.

The -key_groups command helps to list the key groups names that separated by spaces.

The -key_file command is the file path that lists the keys to be exported in a specific format.

The <key_group_name>/<key_name>command helps the user to export keys selectively. You can use a '*' to export all the keys from a particular group as shown:

<key_group_name>/*

You can use the nbkmsutil - listkeys - export command to generate an output in a format that this option requires. Refer nbkmsutil - listkeys - export for more details.

For more details about listing keys:

See Listing keys from a key group.

Note:

The -key_groups and -key_file commands are mutually exclusive.

Run the following command to export the entire keystore:

nbkmsutil -export -path <secure_key_container>

Run the following command to export selected key groups:

nbkmsutil -export -path

<secure_key_container> -key_groups

<key_group_name_1 key_group_name_2 ...>

Run the following command to export selectively export keys:

nbkmsutil -export -path

<secure_key_container> -key_file

<key_file_name>

Feedback

Was this page helpful?
Previous

About exporting and importing keys from the KMS database

Next

Troubleshooting common errors during an export

Feedback

Was this page helpful?