TiDBTiDB Docs Dash 2024

Jan 9 - Jan 12 (UTC)
Join us to improve docs and win a prize!
Sign InTry Free

Export and Import Data Sources and Task Configuration of Clusters

config command is used to export and import data sources and task configuration of clusters.

» help config Commands to import/export config Usage: dmctl config [command] Available Commands: export Export the configurations of sources and tasks. import Import the configurations of sources and tasks. Flags: -h, --help help for config Global Flags: -s, --source strings MySQL Source ID. Use "dmctl config [command] --help" for more information about a command.

Export the data source and task configuration of clusters

You can use export command to export the data source and task configuration of clusters to specified files.

config export [--dir directory]

Parameter explanation

  • dir:
    • optional
    • specifies the file path for exporting
    • the default value is ./configs

Returned results

config export -d /tmp/configs
export configs to directory `/tmp/configs` succeed

import the data source and task configuration of clusters

You can use import command to import the data source and task configuration of clusters from specified files.

config import [--dir directory]

Parameter explanation

  • dir:
    • optional
    • specifies the file path for importing
    • the default value is ./configs

Returned results

config import -d /tmp/configs
start creating sources start creating tasks import configs from directory `/tmp/configs` succeed

Was this page helpful?

Download PDFRequest docs changesAsk questions on Discord
Playground
New
One-stop & interactive experience of TiDB's capabilities WITHOUT registration.
Products
TiDB
TiDB Dedicated
TiDB Serverless
Pricing
Get Demo
Get Started
© 2024 PingCAP. All Rights Reserved.
Privacy Policy.