我已经创建了一个名为'
测试.mydb
'使用传统备份格式:
influxd backup -database <mydatabase> <path-to-backup>
sudo influxd restore -db "test.mydb" -newdb "test.mydb" -datadir /var/lib/influxdb/data /home/ubuntu/influxdb/test.mydb/
backup tarfile name incorrect format
.
influxdb/cmd/influxd/restore/restore.go
:
// should get us ["db","rp", "00001", "00"]
pathParts := strings.Split(filepath.Base(tarFile), ".")
if len(pathParts) != 4 {
return fmt.Errorf("backup tarfile name incorrect format")
}
它检查备份文件名中有多少个点。数量需要是4,但由于我的数据库名称的文件有5点。
有什么解决办法吗?