Skip to content

Restoring to newly created clickhouse environment using a replicatedmergetree backup. #1072

Closed Answered by Slach
bunkiedc asked this question in Q&A
Discussion options

You must be logged in to vote

All the restore links appear to address restroring to an existing clickhouse setup, not a newly created one.

Doesn't matter will you restore on new setup or exists setup

restore command will do following SQL sequence:

  • CREATE DATABASE IF NOT EXISTS
  • DROP TABLE IF EXISTS
  • CREATE TABLE
  • multiple queries ALTER TABLE .. ATTACH PART

if your restore failed
provide full restore command and full restore logs

The command I used was: clickhouse-backup restore 2025-01-13T23:50:27
Which I did, but it didn't replicate across all nodes.

this is expected behavior, and properly command sequence to avoid it described on link which I shared above

another way is using following config options

clickhouse:
  

Replies: 12 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Slach
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants