This is a project or small toy to learn TiDB BackupRestore(BR).
- Added functions:
Now, you could use
mbr
to parse what the file named backupmeta and generated by TiDB BR stored,like below:
mbr parse backupmeta -s /path/to/backupmeta
cluster_version: "5.4.0"
cluster_id: 7155049443847481315
version: 0
start_version: 0
end_version: 436711705384845313
is_raw_kv: false
backup_result:
new_collations_enabled: False
---------------------
"filename": 1_2_30_90eafaa636d17440add6ba1538819ff7087eaf564d641bafda9a1a8af6e1e386_1665922948478_write.sst
"sha256": EDBF44C8EEBD7689E0B7053D9273DB2B8DAAD39756E4DD0EB9C5D522285C2E77
"start_key": 74800000000000003F5F720000000000000000
"end_key": 74800000000000003F5F72FFFFFFFFFFFFFFFF00
"start_version": 0
"end_version": 436711705384845313
"crc64xor": 284354599813761836
"total_kvs": 1
"cf": write
"size": 1499
"cipher_iv": 9FD154CD2C0938F911192A6E5FD3F7B1
......
- planed functions:
And, I am tring to add more functions, like basic backup function of TiDB BR , in the long learning journey.
but,it haven't finfished yet...
mbr backup table ...
- How to use: If you just wanna ues mbr to parse backupmeta file, you could use it like :
- How to build: If you wanna participate in this project or explor more details,you can operate like :
make
./bin/mbr --help