You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/ # clickhouse-backup list
Local backups:
...
- '2021-01-08T05-19-30' (created at 08-01-2021 05:19:30)
Remote backups:
...
However, when I try to restore it, the tool throws error:
/ # clickhouse-backup restore 2021-01-08T05-19-30
2021/01/08 05:20:35 stat /var/lib/clickhouse/backup/2021-01-08T05-19-30/metadata: no such file or directory
Here is more info about dir:
/ # ls -al /var/lib/clickhouse/backup/2021-01-08T05-19-30/
total 68
drwxr-xr-x 3 root root 4096 Jan 8 05:19 .
drwxr-xr-x 9 999 ping 4096 Jan 8 05:19 ..
-rw-r--r-- 1 root root 54278 Jan 8 05:19 parts.hash
drwxr-xr-x 4 root root 4096 Jan 8 05:19 shadow
/ # ls -al /var/lib/clickhouse/backup/
total 36
drwxr-xr-x 9 999 ping 4096 Jan 8 05:19 .
drwxrwxrwx 16 999 ping 4096 Jan 8 03:45 ..
drwxr-xr-x 3 root root 4096 Jan 8 03:55 2021-01-08T03-55-52
drwxr-xr-x 3 root root 4096 Jan 8 03:57 2021-01-08T03-57-39
drwxr-xr-x 3 root root 4096 Jan 8 04:15 2021-01-08T04-15-35
drwxr-xr-x 3 root root 4096 Jan 8 04:17 2021-01-08T04-17-43
drwxr-xr-x 3 root root 4096 Jan 8 04:18 2021-01-08T04-18-19
drwxr-xr-x 3 root root 4096 Jan 8 05:13 2021-01-08T05-13-12
drwxr-xr-x 3 root root 4096 Jan 8 05:19 2021-01-08T05-19-30
/ # ls -al /var/lib/clickhouse/
total 80
drwxrwxrwx 16 999 ping 4096 Jan 8 03:45 .
drwxr-xr-x 6 root root 4096 Jan 8 03:45 ..
drwxr-x--- 2 999 ping 4096 Jan 3 12:53 access
drwxr-xr-x 9 999 ping 4096 Jan 8 05:19 backup
drwxr-x--- 6 999 ping 4096 Jan 8 03:45 data
drwxr-x--- 2 999 ping 4096 Jan 3 12:53 dictionaries_lib
drwxr-x--- 2 999 ping 4096 Jan 3 12:53 flags
drwxr-xr-x 2 999 ping 4096 Jan 3 12:53 format_schemas
drwx------ 2 999 ping 16384 Jan 3 12:53 lost+found
drwxr-x--- 4 999 ping 4096 Jan 4 02:03 metadata
drwxr-x--- 2 999 ping 4096 Jan 8 02:10 metadata_dropped
drwxr-x--- 2 999 ping 4096 Jan 3 12:53 preprocessed_configs
drwxr-x--- 2 999 ping 4096 Jan 8 05:19 shadow
-rw-r----- 1 999 ping 55 Jan 8 03:45 status
drwxr-x--- 32 999 ping 4096 Jan 8 01:57 store
drwxr-xr-x 4 999 ping 4096 Jan 5 16:53 tmp
drwxr-xr-x 2 999 ping 4096 Jan 3 12:53 user_files
/ # ls -al /var/lib/clickhouse/metadata
total 40
drwxr-x--- 4 999 ping 4096 Jan 4 02:03 .
drwxrwxrwx 16 999 ping 4096 Jan 8 03:45 ..
drwxr-x--- 2 999 ping 4096 Jan 3 12:53 default
-rw-r----- 1 999 ping 42 Jan 3 12:53 default.sql
lrwxrwxrwx 1 999 ping 66 Jan 4 02:03 plusequalone_main -> /var/lib/clickhouse/store/272/2729d23f-91c3-49eb-af1e-2620fa316333
-rw-r----- 1 999 ping 78 Jan 4 02:03 plusequalone_main.sql
lrwxrwxrwx 1 999 ping 66 Jan 3 12:53 system -> /var/lib/clickhouse/store/725/725f431f-8c77-4ba9-842b-c624df0588b1
-rw-r----- 1 999 ping 78 Jan 3 12:53 system.sql
drwxr-x--- 2 999 ping 4096 Jan 4 03:48 tutorial
-rw-r----- 1 999 ping 43 Jan 3 14:01 tutorial.sql
I get a shell into the backup container in the pod shown above. Then I manually execute those clickhouse-backup create and so on in that shell.
Thanks for any help!
The text was updated successfully, but these errors were encountered:
fzyzcjy
changed the title
create does not create the metadata directory, thus restore fails
restore fails: no metadata directory, because create does not create it
Jan 8, 2021
fzyzcjy
changed the title
restore fails: no metadata directory, because create does not create it
restore fails: no metadata directory, because create does not create it (version: 20.12.4.5)
Jan 8, 2021
OK I see the problem: 'Atomic' database engine enabled by default in ClickHouse 20.10 IS NOT SUPPORTED!. So when will 1.0 be released which supports atomic engine? Thanks!
Hi thanks for the lib! However, I cannot restore the backup, because the
create
does not create themetadata
directory...clickhouse version: 20.12.4.5
clickhouse-backup version: latest
When I run
clickhouse-backup create
, it says:It seems to succeed, and
list
reveals:However, when I try to restore it, the tool throws error:
Here is more info about dir:
Here is info about my Kubernetes config:
Info about the
part.hash
:Here is how I do those manual create/restore:
I get a shell into the
backup
container in the pod shown above. Then I manually execute thoseclickhouse-backup create
and so on in that shell.Thanks for any help!
The text was updated successfully, but these errors were encountered: