データソースのエクスポートとインポート、およびクラスターのタスクコンフィグレーション
configコマンドは、クラスターのデータ ソースとタスク構成をエクスポートおよびインポートするために使用されます。
» 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コマンドを使用して、クラスターのデータ ソースとタスク構成を指定されたファイルにエクスポートできます。
config export [--dir directory]
パラメータの説明
dir:- オプション
- エクスポートするファイルパスを指定します
- デフォルト値は
./configsです
返された結果
config export -d /tmp/configs
export configs to directory `/tmp/configs` succeed
クラスターのデータソースとタスク構成をインポートする
importコマンドを使用して、指定されたファイルからクラスターのデータ ソースとタスク構成をインポートできます。
config import [--dir directory]
パラメータの説明
dir:- オプション
- インポートするファイルパスを指定します
- デフォルト値は
./configsです
返された結果
config import -d /tmp/configs
start creating sources
start creating tasks
import configs from directory `/tmp/configs` succeed