Creates and restores ClickHouse table backups locally or in cloud object storage. It must run beside clickhouse-server because it links the same on-disk data paths.
Overview
Altinity Backup for ClickHouse, distributed as clickhouse-backup, is a utility for creating, uploading, downloading, and restoring backups of ClickHouse databases. Backup files can be stored on local disk or pushed to remote stores including AWS S3, Google Cloud Storage, Azure Blob, Tencent COS, FTP, and SFTP, with optional integration paths for rclone, kopia, restic, or rsync-style custom commands.
Operations lean on ClickHouse FREEZE semantics to hard-link immutable data parts, then copy or attach parts during restore. The tool documents support for Atomic and Replicated database engines, multi-disk setups, incremental remote backups, and streaming modes that move one table at a time to limit local disk use.
Because it needs the same filesystem view as clickhouse-server, the authors require running clickhouse-backup on the same host, Kubernetes pod, or neighboring container as the server; remote-only connections are limited essentially to schema backup. A server mode exposes REST endpoints that mirror CLI actions for automation and sidecar deployments.
Documented limitations include MergeTree-family table engines for most versions and constraints around embedded backup restore flags on newer servers. Configuration lives in YAML with environment-variable overrides.
Key features
- Full or selective table backups
- S3, GCS, Azure, FTP, SFTP targets
- Incremental remote backups
- Streaming upload and restore
- REST API server mode
- Replicated and Atomic engine support
- Custom remote storage via templates
- Parallel upload and download controls
Use cases
- ClickHouse disaster recovery planning
- Off-site backup to object storage
- Kubernetes sidecar backup jobs
- Incremental backup retention
- Automating backup via HTTP API