[MDEV-20552] Remove innobackupex mode from Mariabackup Created: 2019-09-10 Updated: 2023-11-30 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Backup, mariabackup |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Mariabackup has an --innobackupex option, which can be used to enable innobackupex mode. https://mariadb.com/kb/en/library/mariabackup-options/#-innobackupex This is a compatibility option:
This mode is not very different from the normal mode. The listed differences are:
These differences are not very significant, and having this extra mode is a bit confusing. Maybe some of the behavioral differences in innobackupex mode should be merged into Mariabackup's normal mode, and then we should remove innobackupex mode? UPDATE 14 Aug 2023
|
| Comments |
| Comment by Vladislav Lesin [ 2020-06-04 ] | |||||||||||||
|
ralf.gebhardt asked me, what options do we loose and what is the alternative options. 1. --innobackupex --apply-log is the same as --prepare; 2. --innobackupex --incremental is the same as --incremental-dir, example:
can be exchanged with:
3. --no-timestamp is the default mode for mariabackup, see the above example; 4. --include and --tables are the same 5. --databases - according to the code in ibx_init():
--innobackupex --databases can contain both the list of databases/tables and a file name which contains the list of databases/tables, while just --databases can contain only the list of databases/tables, while for the file there is another option --databases_file. 6. --target_dir is omitted in innobackupex mode, just target directory path is required, what is the same as --target_dir in mariabackup, see the example above. I would say we don't loose any functionality, all innobackupex options have alternative mariabackup options. | |||||||||||||
| Comment by Sergei Golubchik [ 2020-09-10 ] | |||||||||||||
|
What do we gain by removing it? Is this mode only about remapping of command-line options or are there deeper differences? | |||||||||||||
| Comment by Vladislav Lesin [ 2020-09-15 ] | |||||||||||||
|
serg This mode is only for options remapping, https://mariadb.com/kb/en/mariabackup-options/#-innobackupex. This task can be considered as a part of MDEV-23695. innobackupex was removed from xtrabackup in December 2018. | |||||||||||||
| Comment by Sergei Golubchik [ 2020-09-16 ] | |||||||||||||
|
if it's only option remapping, this seems like a small and easy to maintain chunk of code. May be it'd be better to keep it for compatibility reasons? | |||||||||||||
| Comment by Vladislav Lesin [ 2020-09-17 ] | |||||||||||||
|
serg It's about 1k lines of code which just duplicates the code from another .cc file, has it's own "my option" array (which duplicates mariabackup options with some small changes) with it's own "handle_options" function with it's own "get_one_option" callback. And all of this is only to copy one variables to another ones, like
There is no effort to maintain it at all(I think this is because there is almost no difference between innobackupex and mariabackup options, and because nobody use innobackupex, and we don't have related bug reports). And you are correct, we gain nothing in functionality too by removing it. It's just code clean-up task to get rid of copy-pasted code. And if we really need the compatibility with innobackupex, we can keep it. | |||||||||||||
| Comment by Sergei Golubchik [ 2020-09-18 ] | |||||||||||||
|
If indeed "nobody use innobackupex", then we'd better remove this 1K lines of code. | |||||||||||||
| Comment by Viktor Szépe [ 2021-05-31 ] | |||||||||||||
|
Please consider adding a "timestamp" option to normal mode, so users are not forced to use
to generate a sub-directory name. |