Skip to content

Commit 9e25d6f

Browse files
committed
MDEV-33627 : Implement option --dir in mariadb-import
With that, it is possible to restore the full "instance" from a backup made with mariadb-dump --dir The patch implements executing DDL (tables, views, triggers) using statements that are stored in .sql file, created by mariadb-dump --dir . Care is taken of creating triggers correctly after the data is loaded, disabling foreign keys and unique key checks etc. The files are loaded in descending order by datafile size - to ensure better work distribution when running with --parallel option. In addition to --dir option, following options are implemented for partial restore include-only options: --database - import one or several databases --table - import one or several tables exclude options: --ignore-database -. ignore one or several databases when importing --ignore-table - to ignore one or several tables when importing All options above are only valid together with --dir option, and can be specified multiple times.
1 parent 04988d8 commit 9e25d6f

File tree

4 files changed

+979
-52
lines changed

4 files changed

+979
-52
lines changed

client/client_priv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ enum options_client
7373
OPT_DO_SERVER_IDS,
7474
OPT_SSL_FP, OPT_SSL_FPLIST,
7575
OPT_UPDATE_HISTORY,
76+
OPT_DATABASE,
7677
OPT_MAX_CLIENT_OPTION /* should be always the last */
7778
};
7879

0 commit comments

Comments
 (0)