Backing up a Vault

Backup and restore a vault and its keys in the OCI Vault service.

    1. Open the navigation menu, select Identity & Security, and then select Vault.
    2. Under List Scope, in the Compartment list, click the name of the compartment that contains the vault that you want to back up.
    3. From the list of vaults in the compartment, click the name of the vault.

    4. On the Vault Details page, click Back Up Vault.
    5. 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.
    6. 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.
    7. Optionally, to back up only the vault without any keys, select the Back up vault metadata only check box.
    8. 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.