Skip to content

feat: add clickhouse-backup based backup/restore support#22

Open
shivansh-source wants to merge 1 commit into
openeverest:mainfrom
shivansh-source:shivansh#2
Open

feat: add clickhouse-backup based backup/restore support#22
shivansh-source wants to merge 1 commit into
openeverest:mainfrom
shivansh-source:shivansh#2

Conversation

@shivansh-source

Copy link
Copy Markdown

Closes #20.

Implements backup/restore via clickhouse-backup, run as a sidecar and driven through the ProviderManaged BackupProvider interface (SyncBackup/SyncRestore/CleanupBackup/CleanupRestore) already built into provider-runtime.

v1 scope: one backup storage only (clickhouse-backup's REST API only supports one static destination, fixed at sidecar startup), no PITR, no scheduled backups, and backups must be set at instance creation since the sidecar only gets wired into the CHI pod template once.

BackupClass CR isn't shipped by the chart yet — README has the YAML to apply by hand for now, keeping this PR to the provider-side plumbing.

Verified go build/vet/test (16 new tests) and helm lint pass.

Signed-off-by: shivansh-source <shivansh-source@users.noreply.github.com>
@shivansh-source

Copy link
Copy Markdown
Author

/cc @spron-in

@spron-in

Copy link
Copy Markdown
Collaborator

Thanks @shivansh-source .
I would rather wait for this one: Altinity/clickhouse-operator#2015
and rely on the best practices of the operator itself. Now it feels we are implementing the logic that we should not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ClickHouse] Add support for backups and restores

2 participants