This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb-backup-tool.git
The following commit(s) were added to refs/heads/master by this push:
new 41cc464 change bat and sh commands name from backup-export to
data-export(#2)
41cc464 is described below
commit 41cc464b5e48ce4a58264944400bff3dcb47e049
Author: long.li <[email protected]>
AuthorDate: Fri Feb 17 09:35:04 2023 +0800
change bat and sh commands name from backup-export to data-export(#2)
---
README.md | 14 +++++++-------
.../commands/{backup-export.bat => data-export.bat} | 0
.../commands/{backup-export.sh => data-export.sh} | 0
.../commands/{backup-import.bat => data-import.bat} | 0
.../commands/{backup-import.sh => data-import.sh} | 0
readme_zh.md | 14 +++++++-------
6 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/README.md b/README.md
index 75fe575..f695fd0 100644
--- a/README.md
+++ b/README.md
@@ -63,7 +63,7 @@ The integration tests need a real iotdbserver,you can config
the server in "te
2. Unviewable export files, export files in compressed format, take up less
disk space, suitable for some backup work; now supported compression formats
TSFILE、SNAPPY, GZIP, etc.
## Export
-Export command tool: backup-export.bat/backup-export.sh
+Export command tool: data-export.bat/data-export.sh
````
-h // iotdb host address
-p // port
@@ -80,7 +80,7 @@ Export command tool: backup-export.bat/backup-export.sh
````
## Import
-Import command tool: backup-import.bat/backup-import.sh
+Import command tool: data-import.bat/data-import.sh
````
-h // iotdb host address
-p // port
@@ -109,7 +109,7 @@ Scenario description:
---
> Export the d1 device, export the file to d:/company1/machine, select the
second file strategy (extra file), need to generate a time series structure,
the file format is gzip
````
-backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\company1\\machine -i root.ln.company1.diggingMachine.d1 -sy true -se true
-c gzip
+data-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\company1\\machine
-i root.ln.company1.diggingMachine.d1 -sy true -se true -c gzip
````
> Export results:
> TIMESERIES_STRUCTURE.STRUCTURE records the time series structure
@@ -119,7 +119,7 @@ backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\company1\\machine
---
> Export all devices under company1, export the file to d:/company1/machine,
> select the first file strategy, do not need to generate a time series
> structure, the file format is csv
````
-backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\company1\\machine -i root.ln.company1.** -sy false -se false -c csv
+data-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\company1\\machine
-i root.ln.company1.** -sy false -se false -c csv
````
> Export results:
> d2.csv
@@ -128,7 +128,7 @@ backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\company1\\machine
---
> Export all devices under root.ln, export files to d:/all/devices, select the
> first file strategy, need to generate time series structure, file format csv
````
-backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\all\\devices -i
root.ln.** -sy false -se true -c csv -w "time > 1651036025230"
+data-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\all\\devices -i
root.ln.** -sy false -se true -c csv -w "time > 1651036025230"
````
> Export results:
> TIMESERIES_STRUCTURE.STRUCTURE records the time series structure
@@ -139,11 +139,11 @@ backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root
-f d:\\all\\devices -i r
---
> Import data, specify the folder d:/all/devices to export data, need to
> import time series, file format csv
````
-backup-import.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\all\\devices
-se true -c csv
+data-import.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\all\\devices -se
true -c csv
````
---
ps: export tsfile
````
-backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\tsfileexport\\A106 -i root.yyy.** -se false -c tsfile -vn 3 -pi 604800
+data-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\tsfileexport\\A106 -i root.yyy.** -se false -c tsfile -vn 3 -pi 604800
````
if you want to import tsfile,please use [Load External TsFile
Tool](https://iotdb.apache.org/zh/UserGuide/V0.13.x/Write-And-Delete-Data/Load-External-Tsfile.html).
\ No newline at end of file
diff --git a/backup-command/src/assembly/resources/commands/backup-export.bat
b/backup-command/src/assembly/resources/commands/data-export.bat
similarity index 100%
rename from backup-command/src/assembly/resources/commands/backup-export.bat
rename to backup-command/src/assembly/resources/commands/data-export.bat
diff --git a/backup-command/src/assembly/resources/commands/backup-export.sh
b/backup-command/src/assembly/resources/commands/data-export.sh
similarity index 100%
rename from backup-command/src/assembly/resources/commands/backup-export.sh
rename to backup-command/src/assembly/resources/commands/data-export.sh
diff --git a/backup-command/src/assembly/resources/commands/backup-import.bat
b/backup-command/src/assembly/resources/commands/data-import.bat
similarity index 100%
rename from backup-command/src/assembly/resources/commands/backup-import.bat
rename to backup-command/src/assembly/resources/commands/data-import.bat
diff --git a/backup-command/src/assembly/resources/commands/backup-import.sh
b/backup-command/src/assembly/resources/commands/data-import.sh
similarity index 100%
rename from backup-command/src/assembly/resources/commands/backup-import.sh
rename to backup-command/src/assembly/resources/commands/data-import.sh
diff --git a/readme_zh.md b/readme_zh.md
index 1cb85b3..8d31343 100644
--- a/readme_zh.md
+++ b/readme_zh.md
@@ -64,7 +64,7 @@ ps: 使用 '-DskipTests' 来跳过测试用例
2. 不可以查看的导出文件,导出压缩格式的文件,占用磁盘空间比较小,适合做一些备份工作;现在支持的压缩格式TSFILE、SNAPPY、GZIP等
## 导出
-导出命令工具:backup-export.bat/backup-export.sh
+导出命令工具:data-export.bat/data-export.sh
````
-h // iotdb host address
-p // port
@@ -81,7 +81,7 @@ ps: 使用 '-DskipTests' 来跳过测试用例
````
## 导入
-导入命令工具: backup-import.bat/backup-import.sh
+导入命令工具: data-import.bat/data-import.sh
````
-h // iotdb host address
-p // port
@@ -110,7 +110,7 @@ ps: 使用 '-DskipTests' 来跳过测试用例
---
> 导出d1设备,导出文件到d:/company1/machine,文件策略选择第二种(额外文件),需要生成时间序列结构,文件格式gzip
````
-backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\company1\\machine -i root.ln.company1.diggingMachine.d1 -sy true -se true
-c gzip
+data-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\company1\\machine
-i root.ln.company1.diggingMachine.d1 -sy true -se true -c gzip
````
> 导出结果:
> TIMESERIES_STRUCTURE.STRUCTURE 记录时间序列结构
@@ -119,7 +119,7 @@ backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\company1\\machine
---
> 导出company1下所有设备,导出文件到d:/company1/machine,文件策略选择第一种,不需要生成时间序列结构,文件格式csv
````
-backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\company1\\machine -i root.ln.company1.** -sy false -se false -c csv
+data-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\company1\\machine
-i root.ln.company1.** -sy false -se false -c csv
````
> 导出结果:
> d2.csv
@@ -127,7 +127,7 @@ backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\company1\\machine
---
> 导出root.ln下所有设备,导出文件到d:/all/devices,文件策略选择第一种,需要生成时间序列结构,文件格式csv
````
-backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\all\\devices -i
root.ln.** -sy false -se true -c csv -w "time > 1651036025230"
+data-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\all\\devices -i
root.ln.** -sy false -se true -c csv -w "time > 1651036025230"
````
> 导出结果:
> TIMESERIES_STRUCTURE.STRUCTURE 记录时间序列结构
@@ -137,11 +137,11 @@ backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root
-f d:\\all\\devices -i r
---
> 导入数据,指定导出数据的文件夹d:/all/devices,需要导入时间序列,文件格式csv
````
-backup-import.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\all\\devices
-se true -c csv
+data-import.bat -h 127.0.0.1 -p 6667 -u root -pw root -f d:\\all\\devices -se
true -c csv
````
---
ps: 导出 tsfile
````
-backup-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\tsfileexport\\A106 -i root.yyy.** -se false -c tsfile -vn 3 -pi 604800
+data-export.bat -h 127.0.0.1 -p 6667 -u root -pw root -f
d:\\tsfileexport\\A106 -i root.yyy.** -se false -c tsfile -vn 3 -pi 604800
````
如果你想导入tsfile文件,请使用 [Load External TsFile
Tool工具](https://iotdb.apache.org/zh/UserGuide/V0.13.x/Write-And-Delete-Data/Load-External-Tsfile.html)。
\ No newline at end of file