These options are for creating encrypted single-file backups and for decrypting them. See Chapter 9, Encryption for Backups for more details and usage examples for the encryption and decryption functions of MySQL Enterprise Backup.
- Encrypt the data when creating a backup image by a - backup-to-imageoperation, or when packing a backup directory into a single file with the- backup-dir-to-imagecommand. It cannot be used with the- backupor- backup-and-apply-logcommand.
- Decrypt an encrypted backup image when performing an - extract,- image-to-backup-dir, or- copy-back-and-apply-logoperation. It is also used for performing a- validateor- list-imageoperation on an encrypted backup image.- The option cannot be used in a - apply-log,- backup-and-apply-log, or- copy-backoperation. For restoration using the- copy-backcommand, the encrypted backup image has to be unpacked and decrypted first using the- image-to-backup-diror- extractcommand, together with the- --decryptoption.
- 
Command-Line Format --key=KEYType String The symmetric key for encryption and decryption of a backup image. It should be a 256-bit key, encoded as a string of 64 hexadecimal digits. See Chapter 9, Encryption for Backups on how to create a key. The option is incompatible with the --key-fileoption.
- 
Command-Line Format --key-file=FILEType File name The pathname to file that contains a 256-bit key, encoded as a string of 64 hexadecimal digits, for encryption and decryption of a backup image. The option is incompatible with the --keyoption.