Closed myabcc17 closed 2 years ago
you miss mount /var/lib/clickhouse into clickhouse-backup container just add
volumeMounts:
- name: storage-vc-template
mountPath: /var/lib/clickhouse
inside
containers:
- name: clickhouse-backup
the same way as you added to name: clickhouse
container
clickhouse-backup
require direct access to the same /var/lib/clickhouse as clickhouse-server
@Slach Thank you!!!. I'll try it
i'm install clickhouse-backup using https://github.com/AlexAkulov/clickhouse-backup/blob/master/Examples.md#how-to-use-clickhouse-backup-in-kubernetes
clickhouse.yaml is below
I want to backup a test table and only the metadata gets backed up.
This is the config in use:
clickhouse-client -q "SELECT count() FROM karon.test" --host "$SERVER" --port "$CLICKHOUSE_PORT" --user "$BACKUP_USER" --password "$BACKUP_PASSWORD";
shard0 data count: 3 shard1 data count: 1 shard2 data count: 1
Backup and s3 uploading working well. but it is backup only metadata.
so, i'm run
clickhouse-backup restore test_backup
. there is only created table without data.how to fix this??