oceanbase / obdiag

obdiag (OceanBase Diagnostic Tool) is designed to help OceanBase users quickly gather necessary information and analyze the root cause of the problem.
https://www.oceanbase.com/docs/obdiag-cn
Mulan Permissive Software License, Version 2
139 stars 33 forks source link

To remove the dependency on the zip command and implement encryption of zip files through code #529

Closed Teingi closed 2 weeks ago

Teingi commented 2 weeks ago

Summary

To remove the dependency on the zip command and implement encryption of zip files through code

Solution Description

To solve the problem by introducing pyminizip in the obdiag code, when collecting information remotely, use tar to compress the data. Once the compressed file is transferred back to the obdiag machine, use pyminizip to change the compression format and simultaneously handle the encryption needs.