Backing up a Vault
Backup and restore a vault and its keys in the OCI Vault service.
- Open the navigation menu, click Identity & Security, and then click Vault.
- Under List Scope, in the Compartment list, click the name of the compartment that contains the vault that you want to back up.
-
From the list of vaults in the compartment, click the name of the vault.
- On the Vault Details page, click Back Up Vault.
- Choose a source: export a backup to either an Existing Object Storage Bucket (recommended) or a pre-authenticated Object Storage URL for an object that you can write to.
- Do one of the following, depending on what you chose in the previous step:
- Choose a bucket from the dropdown menu. If needed, you can change the compartment to find a bucket in a different compartment. Then, specify the Backup Name. Avoid entering confidential information.
- Click Object Storage URL, and then provide a pre-authenticated URL for an object.
- Optionally, to back up only the vault without any keys, select the Back up vault metadata only check box.
- When you are finished, click Back Up Vault. (Note the compartment so that you can restore this resource to the right compartment later.)
Use the oci kms management vault backup command and required parameters to restore a key:
oci kms management vault backup --bucket-name <bucket_name> --from-json <json_input>
See Advanced JSON Options for information on using JSON input with this command.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the BackupVault operation to back up a vault.