Encrypted Files Backup (mariadb-backup)
How mariadb-backup backs up and restores encrypted data files.
Compatibility with Data-at-Rest Encryption (TDE)
1. The Backup Phase
SELECT plugin_name, plugin_library, @@plugin_dir FROM information_schema.plugins WHERE plugin_type='ENCRYPTION';
+---------------------+------------------------+---------------------------------------+
| plugin_name | plugin_library | @@plugin_dir |
+---------------------+------------------------+---------------------------------------+
| file_key_management | file_key_management.so | /opt/homebrew/opt/mariadb/lib/plugin/ |
+---------------------+------------------------+---------------------------------------+SHOW VARIABLES LIKE 'file_key_management%'; +------------------------------------------+------------------------------------------------+
| Variable_name | Value |
+------------------------------------------+------------------------------------------------+
| file_key_management_digest | sha1 |
| file_key_management_encryption_algorithm | aes_ctr |
| file_key_management_filekey | |
| file_key_management_filename | /opt/homebrew/etc/mysql/encryption/keyfile.txt |
| file_key_management_use_pbkdf2 | 0 |
+------------------------------------------+------------------------------------------------+2. The Prepare Phase
3. The Restore Phase
TDE Backup Requirements Checklist
Key Takeaways
Mixed-Encryption Backups
1. File-by-File Detection
2. Preservation of State
3. The Prepare Phase in a Mixed Environment
Key Limitations & Risks for Mixed Backups
Scenario
Behavior
Risk
Handling Mixed-Encryption Environments
1. Tablespace Detection
2. The Prepare Phase Requirement
3. Best Practice: Layered Encryption
Example: Encrypting a Mixed-State Backup Stream
Summary of TDE Backup Behavior
Component
State in Backup
Requires KMS for Prepare?
Last updated
Was this helpful?

