Documentation Home
MySQL Enterprise Backup 4.1 User's Guide
Related Documentation Download this Manual
PDF (US Ltr) - 1.2Mb
PDF (A4) - 1.2Mb
HTML Download (TGZ) - 189.4Kb
HTML Download (Zip) - 220.3Kb


MySQL Enterprise Backup 4.1 User's Guide  /  ...  /  Options for Working with Encrypted InnoDB Tablespaces

15.14 Options for Working with Encrypted InnoDB Tablespaces

Starting with release 4.0.2, MySQL Enterprise Backup supports encrypted InnoDB tablespaces. For details on how the MySQL server encrypts and decrypts InnoDB tables, see InnoDB Tablespace Encryption. See Chapter 6, Working with Encrypted InnoDB Tables on how mysqlbackup commands handle encrypted InnoDB tables.

When InnoDB tablespace encryption uses Oracle Key Vault (OKV) for encryption key management, the feature is referred to as MySQL Enterprise Transparent Data Encryption (TDE).

The following are the command-line options for working with encrypted InnoDB tables:

  • --keyring=VALUE

    Command-Line Format--keyring=VALUE
    Permitted ValuesTypestring

    The kind of keyring plugin used for master encryption key management. Currently, there are two possible values:

    • keyring_file: The keyring_file plugin is used, which means the master encryption key is stored in a keyring file, the location of which is specified by the --keyring_file_data option.

    • keyring_okv: The keyring_okv plugin is used, which means the master keys are managed by an Oracle Key Vault (OKV); the location of the key vault's endpoint directory is specified by the --keyring_okv_conf_dir option.

    The option must be specified for copy-back-and-apply-log operations, copy-back operations that use the --generate-new-master-key option, and offline backups. For online backups, the keyring plugin setting on the server overrides the value set by this option.

  • --keyring_file_data=PATH

    Command-Line Format--keyring-file-data=PATH
    Permitted ValuesTypefile name

    Path to the keyring file. The option is required when the option --keyring has the value keyring_file. For online backups, the --keyring_file_data setting on the server overrides the value set by this option.

  • --keyring_okv_conf_dir=PATH

    Command-Line Format--keyring-okv-conf-dir=PATH
    Permitted ValuesTypedirectory name

    Path to the Oracle Key Vault (OKV) endpoint directory. The option is required when the option --keyring has the value keyring_okv. For online backups, the --keyring_okv_conf_dir setting on the server overrides the value set by this option.

  • --encrypt-password[=STRING]

    Command-Line Format--encrypt-password=STRING
    Permitted ValuesTypestring

    The user-supplied password by which mysqlbackup encrypts the encryption keys for the tablespaces. The same password supplied during backup must be supplied again during a copy-back-and-apply-log or an apply-log operation for the backup, or mysqlbackup will error out when it encounters encrypted InnoDB tables during the operation.

    The option must be used when backing up a server that has a keyring plugin enabled for InnoDB table encryption and for restoring a backup containing encrypted InnoDB tables. However, users who do not want to supply the password on the command line or in a default file may use the option without specifying any value; mysqlbackup then asks the user to type in the password before the operation starts.

  • --generate-new-master-key

    Command-Line Format--generate-new-master-key

    Generate new master key. During a restore, when the option is used, mysqlbackup generates a new master key and uses it to reencrypt all the tablespace keys. To use the --generate-new-master-key option, the --keyring option, as well as the --keyring_file_data option (when --keyring=keyring_file) or --keyring_okv_conf_dir option (when --keyring=keyring_okv) must be specified, so that mysqlbackup can access the keyring.


User Comments
Sign Up Login You must be logged in to post a comment.