Skip to content

feat: clickhouse backups - #75

Open
acoronels wants to merge 12 commits into
mainfrom
acs/clickhouse-backup
Open

acoronels wants to merge 12 commits into
mainfrom
acs/clickhouse-backup

Conversation

@acoronels

Copy link
Copy Markdown
Contributor

This PR adds a new clickhouse_backup role and playbook to create native ClickHouse database backups and upload them to remote storage using the existing storage_backups role.

The implementation is designed to work with Docker-based ClickHouse clusters while keeping native package installations supported as a secondary deployment mode. For Docker deployments, it writes the allowed backup disk configuration under {{ CLICKHOUSE_BASE_DIR }}/config.d, stores backup artifacts in {{ CLICKHOUSE_DATA_DIR }}/backups on the host, and recreates the container through docker compose when the backup disk configuration changes.

The role discovers databases automatically or accepts an explicit list, creates one backup artifact per database, uploads the files to S3 or Azure, and cleans up temporary artifacts after upload.

@acoronels
acoronels requested a review from a team as a code owner June 18, 2026 14:16

This branch has not been deployed

No deployments
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.

1 participant