Replies: 1 comment 5 replies
-
Yes, a little, when you try to restore data then exists table will drop and be created from scratch because we can't guaranteed we have the same table structure in backup with exists table maybe we should convert discussion issue as a workardoung i could suggest use
and after it manually attach partitions with following SQL statements
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to backup (and restore) big tables (>4TiB) by partitions. Partitions are by year and month (like 202310
PARTITION BY toYYYYMM(day)
)I make one backup per complete year,
example for 2022:
So I have one backup per year.
Now if I truncate my table to simulate an incident, and try to restore by year, one restore overwrite the previous one:
cluster :) TRUNCATE table mydb.test
clickhouse-backup restore LOCAL-YEAR-2023-mydb-test-231004130353
clickhouse-backup restore LOCAL-YEAR-2022-mydb-test-231004130327
I've try to restore using
--data
and/or--partitions=
argument but nothing happens;Have I made a mistake in using or understanding how backup restoration per partition works?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions