You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an existing issue for the same feature request?
I have checked the existing issues.
Is your feature request related to a problem?
Currently there are some constraints of mo-dump tool,
1. mo-dump only supports exporting the backup of a single database, if you have several databases to backup, you need to manually run mo-dump for several times.
2. -tbl [table name]: Optional parameter. If the parameter is empty, the whole database will be exported. If you want to take the backup specific tables, then you can specify multiple -tbl and table names in the command.
Describe the feature you'd like
mo-dump supports dumping multiple databases and/or tables if it's specified by a user.
Describe implementation you've considered
For databases:
Support multiple databases by specifying them in a list, sperated by ,
Support all databases by sepecifiying them using all. However, it should be discussed first whether internal databases should also be exported, or only user databases should be exported. @domingozhang@jianwan0214
Activity
aronchanisme commentedon Oct 30, 2023
Test date: 2023/10/30
Commit id:
For modump with multiple tables,
Senario 1. Dump multiple tables with no data, already tested as stated here #10091 (comment)
Senario 2. Dump multiple tables with data,
1 Test case 1
2 Test case 2: table
nationandregionin databasetpch_10g./mo-dump -h 127.0.0.1 -u dump -p 111 -P 6001 -db tpch_10g -tbl nation,region > /data/mo_backup/20231030_1605/test_2.sql cat /data/mo_backup/20231030_1605/test_2.sqlaronchanisme commentedon Nov 22, 2023
Dump multiple databases with and without data, failed on both scenarios, since only one database is dumped when two are specified.
commit id:
aronchanisme commentedon Nov 22, 2023
Create 2 empty databases and try dumping them, this is ok though. Something must be wrong. Please kindly help take a look. Thanks. @YANGGMM

xmh1011 commentedon Nov 22, 2023
fixed by: matrixorigin/mo_dump#3
aronchanisme commentedon Nov 22, 2023
With data, ok


With no data, ok
