pingcap / tidb-operator

TiDB operator creates and manages TiDB clusters running in Kubernetes.
https://docs.pingcap.com/tidb-in-kubernetes/
Apache License 2.0
1.23k stars 498 forks source link

Specify Database/Databases For Restore CR #3183

Closed sstubbs closed 3 years ago

sstubbs commented 4 years ago

In continuation to this issue https://github.com/pingcap/tidb-operator/issues/2695 I have tried adding tablefilter to the restore CR in this commit https://github.com/sstubbs/tidb-operator/commit/48455223191abcf21decdba532049eb535015da5

It is parsing the --filter argument to lightning but this argument is not available in lightining. Will this be added?

DanielZhangQD commented 4 years ago

@sstubbs It's -f for lightning:

  -f value
        select tables to import
sstubbs commented 4 years ago

thank you very much. I will get a PR done in the next few days after I test it a bit.

DanielZhangQD commented 4 years ago

OK, thanks!

lichunzhu commented 4 years ago

@sstubbs Hello, do you have any further problem on this issue?