Skip to content

Commit

Permalink
chore: fix the mistake args of cli cmd (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengjiachun authored Nov 28, 2024
1 parent e4c5681 commit d4556a2
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Export and Import tools provide functionality for backing up and restoring G

### Command Syntax
```bash
greptime export [OPTIONS]
greptime cli export [OPTIONS]
```

### Options
Expand Down Expand Up @@ -46,7 +46,7 @@ greptime export [OPTIONS]

### Command Syntax
```bash
greptime import [OPTIONS]
greptime cli import [OPTIONS]
```

### Options
Expand All @@ -70,25 +70,25 @@ greptime import [OPTIONS]
### Full Databases Backup
```bash
# Export all databases backup
greptime export --addr localhost:4000 --output-dir /tmp/backup/greptimedb
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/greptimedb

# Import all databases
greptime import --addr localhost:4000 --input-dir /tmp/backup/greptimedb
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/greptimedb
```

### Schema-Only Operations
```bash
# Export only schemas
greptime export --addr localhost:4000 --output-dir /tmp/backup/schemas --target schema
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/schemas --target schema

# Import only schemas
greptime import --addr localhost:4000 --input-dir /tmp/backup/schemas --target schema
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/schemas --target schema
```

### Time-Range Based Backup
```bash
# Export data within specific time range
greptime export --addr localhost:4000 \
greptime cli export --addr localhost:4000 \
--output-dir /tmp/backup/timerange \
--start-time "2024-01-01 00:00:00" \
--end-time "2024-01-31 23:59:59"
Expand All @@ -97,10 +97,10 @@ greptime export --addr localhost:4000 \
### Specific Database Backup
```bash
# To export a specific database
greptime export --addr localhost:4000 --output-dir /tmp/backup/greptimedb --database '{my_database_name}'
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/greptimedb --database '{my_database_name}'

# The same applies to import tool
greptime import --addr localhost:4000 --input-dir /tmp/backup/greptimedb --database '{my_database_name}'
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/greptimedb --database '{my_database_name}'
```

## Best Practices
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

### 命令语法
```bash
greptime export [OPTIONS]
greptime cli export [OPTIONS]
```

### 选项
Expand Down Expand Up @@ -45,7 +45,7 @@ greptime export [OPTIONS]

### 命令语法
```bash
greptime import [OPTIONS]
greptime cli import [OPTIONS]
```

### 选项
Expand All @@ -69,25 +69,25 @@ greptime import [OPTIONS]
### 完整数据库备份
```bash
# 导出所有数据库备份
greptime export --addr localhost:4000 --output-dir /tmp/backup/greptimedb
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/greptimedb

# 导入所有数据库
greptime import --addr localhost:4000 --input-dir /tmp/backup/greptimedb
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/greptimedb
```

### 仅表结构操作
```bash
# 仅导出表结构
greptime export --addr localhost:4000 --output-dir /tmp/backup/schemas --target schema
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/schemas --target schema

# 仅导入表结构
greptime import --addr localhost:4000 --input-dir /tmp/backup/schemas --target schema
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/schemas --target schema
```

### 基于时间范围的备份
```bash
# 导出特定时间范围内的数据
greptime export --addr localhost:4000 \
greptime cli export --addr localhost:4000 \
--output-dir /tmp/backup/timerange \
--start-time "2024-01-01 00:00:00" \
--end-time "2024-01-31 23:59:59"
Expand All @@ -96,10 +96,10 @@ greptime export --addr localhost:4000 \
### 指定数据库备份
```bash
# 导出指定数据库
greptime export --addr localhost:4000 --output-dir /tmp/backup/greptimedb --database '{my_database_name}'
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/greptimedb --database '{my_database_name}'

# 导入工具也同样适用
greptime import --addr localhost:4000 --input-dir /tmp/backup/greptimedb --database '{my_database_name}'
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/greptimedb --database '{my_database_name}'
```

## 最佳实践
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

### 命令语法
```bash
greptime export [OPTIONS]
greptime cli export [OPTIONS]
```

### 选项
Expand Down Expand Up @@ -45,7 +45,7 @@ greptime export [OPTIONS]

### 命令语法
```bash
greptime import [OPTIONS]
greptime cli import [OPTIONS]
```

### 选项
Expand All @@ -69,25 +69,25 @@ greptime import [OPTIONS]
### 完整数据库备份
```bash
# 导出所有数据库备份
greptime export --addr localhost:4000 --output-dir /tmp/backup/greptimedb
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/greptimedb

# 导入所有数据库
greptime import --addr localhost:4000 --input-dir /tmp/backup/greptimedb
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/greptimedb
```

### 仅表结构操作
```bash
# 仅导出表结构
greptime export --addr localhost:4000 --output-dir /tmp/backup/schemas --target schema
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/schemas --target schema

# 仅导入表结构
greptime import --addr localhost:4000 --input-dir /tmp/backup/schemas --target schema
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/schemas --target schema
```

### 基于时间范围的备份
```bash
# 导出特定时间范围内的数据
greptime export --addr localhost:4000 \
greptime cli export --addr localhost:4000 \
--output-dir /tmp/backup/timerange \
--start-time "2024-01-01 00:00:00" \
--end-time "2024-01-31 23:59:59"
Expand All @@ -96,10 +96,10 @@ greptime export --addr localhost:4000 \
### 指定数据库备份
```bash
# 导出指定数据库
greptime export --addr localhost:4000 --output-dir /tmp/backup/greptimedb --database '{my_database_name}'
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/greptimedb --database '{my_database_name}'

# 导入工具也同样适用
greptime import --addr localhost:4000 --input-dir /tmp/backup/greptimedb --database '{my_database_name}'
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/greptimedb --database '{my_database_name}'
```

## 最佳实践
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Export and Import tools provide functionality for backing up and restoring G

### Command Syntax
```bash
greptime export [OPTIONS]
greptime cli export [OPTIONS]
```

### Options
Expand Down Expand Up @@ -46,7 +46,7 @@ greptime export [OPTIONS]

### Command Syntax
```bash
greptime import [OPTIONS]
greptime cli import [OPTIONS]
```

### Options
Expand All @@ -70,25 +70,25 @@ greptime import [OPTIONS]
### Full Databases Backup
```bash
# Export all databases backup
greptime export --addr localhost:4000 --output-dir /tmp/backup/greptimedb
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/greptimedb

# Import all databases
greptime import --addr localhost:4000 --input-dir /tmp/backup/greptimedb
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/greptimedb
```

### Schema-Only Operations
```bash
# Export only schemas
greptime export --addr localhost:4000 --output-dir /tmp/backup/schemas --target schema
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/schemas --target schema

# Import only schemas
greptime import --addr localhost:4000 --input-dir /tmp/backup/schemas --target schema
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/schemas --target schema
```

### Time-Range Based Backup
```bash
# Export data within specific time range
greptime export --addr localhost:4000 \
greptime cli export --addr localhost:4000 \
--output-dir /tmp/backup/timerange \
--start-time "2024-01-01 00:00:00" \
--end-time "2024-01-31 23:59:59"
Expand All @@ -97,10 +97,10 @@ greptime export --addr localhost:4000 \
### Specific Database Backup
```bash
# To export a specific database
greptime export --addr localhost:4000 --output-dir /tmp/backup/greptimedb --database '{my_database_name}'
greptime cli export --addr localhost:4000 --output-dir /tmp/backup/greptimedb --database '{my_database_name}'

# The same applies to import tool
greptime import --addr localhost:4000 --input-dir /tmp/backup/greptimedb --database '{my_database_name}'
greptime cli import --addr localhost:4000 --input-dir /tmp/backup/greptimedb --database '{my_database_name}'
```

## Best Practices
Expand Down

0 comments on commit d4556a2

Please sign in to comment.