You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

TiDB Lightning备份  

参数介绍:
--s3.bucket:S3存储桶名称(仅适用于S3存储类型)
--storage:备份文件存储类型
--pd-urls:PD集群地址
--tidb-password:TiDB密码
--tidb-user:TiDB用户名
--tidb-port:TiDB端口号
--tidb-host:TiDB主机地址

完整代码案例:

lightning --tidb-host=127.0.0.1 --tidb-port=4000 --tidb-user=root --tidb-password=123456 --pd-urls=pd1:2379,pd2:2379,pd3:2379 --storage=local --backup-dir=/path/to/backup
  • No labels