The schema export operation exports the information about store group, timeseries, and schema template in the current IoTDB in the form of mlog.bin and tlog.txt to the specified directory.
The exported mlog.bin and tlog.txt files can be incrementally loaded into an IoTDB instance.
EXPORT SCHEMA '<path/dir>'
Linux/MacOS
./exportSchema.sh -d /yourpath/data/system/schema -o /yourpath/targetDir
Windows
./exportSchema.bat-d /yourpath/data/system/schema -o /yourpath/targetDir
Export destination directory on server need to be specified when exporting metadata using scripting. Note that the target directory path must be absolute path.
usage: ExportSchema -o <target directory path> [-h <host address>] [-p <port>] [-u <user>] [-pw <password>] [-help]
-o <target directory path> Need to specify a absolute target directory
path on server(required)
-h <host address> Could specify a specify the IoTDB host
address, default is 127.0.0.1 (optional)
-p <port> Could specify a specify the IoTDB port,
default is 6667 (optional)
-u <user> Could specify the IoTDB user name, default
is root (optional)
-pw <password> Could specify the IoTDB password, default is
root (optional)
-help,--help Display help information
Please refer to MLogLoad Tool