Altinity / clickhouse-backup

Tool for easy backup and restore for ClickHouse® using object storage for backup files.
https://altinity.com
Other
1.29k stars 227 forks source link

Bug: After restart server doesnt show list of backups #368

Closed dima-altinity closed 2 years ago

dima-altinity commented 2 years ago

Hi

we run chbackup as server process and use it via "system.backup_actions". It works fine however if I restart chbackup process then "system.backup_actions" table becomes empty. But local backups exist and you could see them using "clickhouse-backup list local | remote" command.

Looks like server process show read local & remote backups after it starts and save it in memory ( variable).

@Slach @AlexAkulov

Slach commented 2 years ago

system.backup_actions it's a just memory log, and not store persistent, if you restart server all current running actions will break, and after restart no one action will not launch without API call

system.backup_list works after restart, as expected