clickhouse误删数据恢复
时间: 2023-08-28 18:08:20 浏览: 329
要恢复ClickHouse中误删的数据,可以使用ClickHouse的备份工具clickhouse-backup来自动化实现。首先,确保你已经安装了clickhouse-backup工具。然后,执行以下命令进行数据恢复:
sudo clickhouse-backup restore 2022-12-18T09-50-43
这个命令会将备份文件2022-12-18T09-50-43中的数据恢复到ClickHouse中。请注意,执行恢复命令时,确保不要更改/var/lib/clickhouse/backup文件夹的权限,因为这可能会导致数据损坏。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [clickhouse 数据备份与恢复](https://blog.csdn.net/congge_study/article/details/128363429)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文