Till recently (I assume until MDEV-18215 ) one could override encryption options specified in the generated cnf file from the command line. It is convenient, for example, when you move the backup between hosts or environments, and paths change. It could look like this (notice file-key-management-filename treatment):
10.4 9d479e25
$ /data/bld/10.4-debug/bin/mariabackup --prepare --use-memory=1073741824 --innodb-file-io-threads=1 --target-dir=`pwd`/mdev23115/backup_before_prepare_0 --file-key-management-filename=`pwd`/mysql-test/std_data/keys.txt --plugin-dir=`pwd`/lib/plugin
Warning: option 'innodb_file_io_threads': signed value 1 adjusted to 4
/data/bld/10.4-debug/bin/mariabackup based on MariaDB server 10.4.14-MariaDB Linux (x86_64)
[00] 2020-07-07 21:13:56 cd to /data/bld/10.5-debug-nightly/mdev23115/backup_before_prepare_0/
[00] 2020-07-07 21:13:56 Loading encryption plugin from file_key_management=file_key_management
[00] 2020-07-07 21:13:56 Loading encryption plugin
[00] 2020-07-07 21:13:56 Encryption plugin parameter : '--plugin_load=file_key_management=file_key_management'
[00] 2020-07-07 21:13:56 Encryption plugin parameter : '--file_key_management_encryption_algorithm=aes_cbc'
[00] 2020-07-07 21:13:56 Encryption plugin parameter : '--file_key_management_filekey='
[00] 2020-07-07 21:13:56 Encryption plugin parameter : '--file_key_management_filename=/xxhome/mdbe/data/file_key_management_keys.txt'
[00] 2020-07-07 21:13:56 Encryption plugin parameter : '--innodb_encrypt_log=1'
[00] 2020-07-07 21:13:56 Encryption plugin parameter : '--prepare'
[00] 2020-07-07 21:13:56 Encryption plugin parameter : '--use-memory=1073741824'
[00] 2020-07-07 21:13:56 Encryption plugin parameter : '--target-dir=/data/bld/10.5-debug-nightly/mdev23115/backup_before_prepare_0'
[00] 2020-07-07 21:13:56 Encryption plugin parameter : '--file-key-management-filename=/data/bld/10.5-debug-nightly/mysql-test/std_data/keys.txt'
...
[00] 2020-07-07 21:13:58 completed OK!
Now I don't seem to be able to do it anymore.
If I try to put it on the command line as a "regular" mariabackup option, it rejects it:
10.5 ee584137
$ /data/bld/10.5-debug-nightly/bin/mariabackup --prepare --use-memory=1073741824 --innodb-file-io-threads=1 --target-dir=`pwd`/mdev23115/backup_before_prepare_0 --file-key-management-filename=`pwd`/mysql-test/std_data/keys.txt --plugin-dir=`pwd`/lib/plugin
Warning: option 'innodb_file_io_threads': signed value 1 adjusted to 4
Warning: option 'innodb_file_io_threads': signed value 1 adjusted to 4
/data/bld/10.5-debug-nightly/bin/mariabackup: unknown variable 'file-key-management-filename=/data/bld/10.5-debug-nightly/mysql-test/std_data/keys.txt'
And if I put it after mysqld-args , it gets ignored and the one from the cnf file is still used:
$ /data/bld/10.5-debug-nightly/bin/mariabackup --prepare --use-memory=1073741824 --innodb-file-io-threads=1 --target-dir=`pwd`/mdev23115/backup_before_prepare_0 --plugin-dir=`pwd`/lib/plugin --mysqld-args --file-key-management-filename=`pwd`/mysql-test/std_data/keys.txt
Warning: option 'innodb_file_io_threads': signed value 1 adjusted to 4
Warning: option 'innodb_file_io_threads': signed value 1 adjusted to 4
/data/bld/10.5-debug-nightly/bin/mariabackup based on MariaDB server 10.5.5-MariaDB Linux (x86_64)
[00] 2020-07-07 21:22:15 cd to /data/bld/10.5-debug-nightly/mdev23115/backup_before_prepare_0/
[00] 2020-07-07 21:22:15 Loading encryption plugin from file_key_management=file_key_management
[00] 2020-07-07 21:22:15 Loading encryption plugin
[00] 2020-07-07 21:22:15 Encryption plugin parameter : '--plugin_load=file_key_management=file_key_management'
[00] 2020-07-07 21:22:15 Encryption plugin parameter : '--file_key_management_encryption_algorithm=aes_cbc'
[00] 2020-07-07 21:22:15 Encryption plugin parameter : '--file_key_management_filekey='
[00] 2020-07-07 21:22:15 Encryption plugin parameter : '--file_key_management_filename=/xxhome/mdbe/data/file_key_management_keys.txt'
[00] 2020-07-07 21:22:15 Encryption plugin parameter : '--innodb_encrypt_log=1'
[00] 2020-07-07 21:22:15 Encryption plugin parameter : '--prepare'
[00] 2020-07-07 21:22:15 Encryption plugin parameter : '--use-memory=1073741824'
[00] 2020-07-07 21:22:15 Encryption plugin parameter : '--target-dir=/data/bld/10.5-debug-nightly/mdev23115/backup_before_prepare_0'
/data/bld/10.5-debug-nightly/bin/mariabackup: Can't find file: '/xxhome/mdbe/data/file_key_management_keys.txt' (errno: 2 "No such file or directory")
Vladislav Lesin
made changes -
2020-07-21 11:43
Status
Open
[ 1
]
In Progress
[ 3
]
Julien Fritsch
made changes -
2021-07-05 13:25
Assignee
Vladislav Lesin
[ vlad.lesin
]
Vladislav Vaintroub
[ wlad
]
Julien Fritsch
made changes -
2021-07-05 13:25
Assignee
Vladislav Vaintroub
[ wlad
]
Julien Fritsch
[ julien.fritsch
]
Julien Fritsch
made changes -
2021-07-05 13:26
Status
In Progress
[ 3
]
Stalled
[ 10000
]
Julien Fritsch
made changes -
2021-07-05 13:26
Assignee
Julien Fritsch
[ julien.fritsch
]
Vladislav Vaintroub
[ wlad
]
Vladislav Vaintroub
made changes -
2021-07-19 10:17
Assignee
Vladislav Vaintroub
[ wlad
]
Julien Fritsch
[ julien.fritsch
]
Sergei Golubchik
made changes -
2021-08-03 10:16
Assignee
Julien Fritsch
[ julien.fritsch
]
Vladislav Lesin
[ vlad.lesin
]
Sergei Golubchik
made changes -
2021-12-06 21:35
Workflow
MariaDB v3
[ 110959
]
MariaDB v4
[ 143655
]
Julien Fritsch
made changes -
2024-09-10 14:57
Fix Version/s
10.4
[ 22408
]
{"report":{"fcp":1460.8999996185303,"ttfb":473.5,"pageVisibility":"visible","entityId":89250,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"21ec4da2-15ec-498a-bca4-da0f3cd655ee","navigationType":0,"readyForUser":1546,"redirectCount":0,"resourceLoadedEnd":2201.3999996185303,"resourceLoadedStart":479.69999980926514,"resourceTiming":[{"duration":459.0999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":479.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":479.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":938.7999992370605,"responseStart":0,"secureConnectionStart":0},{"duration":459.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":479.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":479.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":939.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":510.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":480.19999980926514,"connectEnd":480.19999980926514,"connectStart":480.19999980926514,"domainLookupEnd":480.19999980926514,"domainLookupStart":480.19999980926514,"fetchStart":480.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":480.19999980926514,"responseEnd":990.8999996185303,"responseStart":990.8999996185303,"secureConnectionStart":480.19999980926514},{"duration":601.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":480.29999923706055,"connectEnd":480.29999923706055,"connectStart":480.29999923706055,"domainLookupEnd":480.29999923706055,"domainLookupStart":480.29999923706055,"fetchStart":480.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":480.29999923706055,"responseEnd":1081.5999994277954,"responseStart":1081.5999994277954,"secureConnectionStart":480.29999923706055},{"duration":605.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":480.5,"connectEnd":480.5,"connectStart":480.5,"domainLookupEnd":480.5,"domainLookupStart":480.5,"fetchStart":480.5,"redirectEnd":0,"redirectStart":0,"requestStart":480.5,"responseEnd":1085.6999998092651,"responseStart":1085.6999998092651,"secureConnectionStart":480.5},{"duration":605.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":480.69999980926514,"connectEnd":480.69999980926514,"connectStart":480.69999980926514,"domainLookupEnd":480.69999980926514,"domainLookupStart":480.69999980926514,"fetchStart":480.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":480.69999980926514,"responseEnd":1086.3999996185303,"responseStart":1086.3999996185303,"secureConnectionStart":480.69999980926514},{"duration":606.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":480.8999996185303,"connectEnd":480.8999996185303,"connectStart":480.8999996185303,"domainLookupEnd":480.8999996185303,"domainLookupStart":480.8999996185303,"fetchStart":480.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":480.8999996185303,"responseEnd":1087.0999994277954,"responseStart":1087.0999994277954,"secureConnectionStart":480.8999996185303},{"duration":658.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":481,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":481,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1139.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":606.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":481.19999980926514,"connectEnd":481.19999980926514,"connectStart":481.19999980926514,"domainLookupEnd":481.19999980926514,"domainLookupStart":481.19999980926514,"fetchStart":481.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":481.19999980926514,"responseEnd":1087.5999994277954,"responseStart":1087.5999994277954,"secureConnectionStart":481.19999980926514},{"duration":658.2000007629395,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":481.29999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":481.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1139.5,"responseStart":0,"secureConnectionStart":0},{"duration":606.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":481.5,"connectEnd":481.5,"connectStart":481.5,"domainLookupEnd":481.5,"domainLookupStart":481.5,"fetchStart":481.5,"redirectEnd":0,"redirectStart":0,"requestStart":481.5,"responseEnd":1088.1999998092651,"responseStart":1088.1999998092651,"secureConnectionStart":481.5},{"duration":1117.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":482.3999996185303,"connectEnd":482.3999996185303,"connectStart":482.3999996185303,"domainLookupEnd":482.3999996185303,"domainLookupStart":482.3999996185303,"fetchStart":482.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":482.3999996185303,"responseEnd":1599.5,"responseStart":1599.5,"secureConnectionStart":482.3999996185303},{"duration":1718.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":482.5,"connectEnd":482.5,"connectStart":482.5,"domainLookupEnd":482.5,"domainLookupStart":482.5,"fetchStart":482.5,"redirectEnd":0,"redirectStart":0,"requestStart":482.5,"responseEnd":2201.3999996185303,"responseStart":2201.3999996185303,"secureConnectionStart":482.5},{"duration":494.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1151.6999998092651,"connectEnd":1151.6999998092651,"connectStart":1151.6999998092651,"domainLookupEnd":1151.6999998092651,"domainLookupStart":1151.6999998092651,"fetchStart":1151.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1151.6999998092651,"responseEnd":1646.3999996185303,"responseStart":1646.3999996185303,"secureConnectionStart":1151.6999998092651},{"duration":787.6000003814697,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1454.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1454.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2242.199999809265,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":287,"responseStart":474,"responseEnd":478,"domLoading":477,"domInteractive":2244,"domContentLoadedEventStart":2244,"domContentLoadedEventEnd":2291,"domComplete":2773,"loadEventStart":2773,"loadEventEnd":2774,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2203.0999994277954},{"name":"bigPipe.sidebar-id.end","time":2204.0999994277954},{"name":"bigPipe.activity-panel-pipe-id.start","time":2204.2999992370605},{"name":"bigPipe.activity-panel-pipe-id.end","time":2206.8999996185303},{"name":"activityTabFullyLoaded","time":2307.199999809265}],"measures":[],"correlationId":"3faa7c8fcfd17e","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":22,"dbConnsTimeInMs":32,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}