Introducing external backups on ClickHouse Cloud
ClickHouse Cloud can now export service backups to a customer-owned bucket on AWS, GCP or Azure, in any region of the same provider. Cross-cloud backups are not yet supported and are on the roadmap. Setup on AWS means creating an IAM role the service can assume, with a trust policy and an S3 permissions policy, then registering the role ARN and bucket URL in the console. Backups run daily by default on a configurable schedule. External backups are always full rather than incremental, so a broken chain cannot make later backups unrecoverable, which caps frequency at once per day. They are also never lifecycled by ClickHouse, so retention through bucket TTL policies or scripts is the user's job. Restores run as a templated SQL RESTORE command from a new service, which can be edited if backups were moved and surfaces permission or path errors directly.
Related posts
- Building ClickHouse BYOC (Bring Your Own Cloud) on AWS
ClickHouse mediumAdept
ClickHouse BYOC on AWS splits a ClickHouse-hosted management plane from a data plane EKS cluster in the customer's VPC, provisioned automatically with CloudFormation and Crossplane. Support access is approved, audited, time-bound and routed through Tailscale. Engineers authenticate with temporary certificates tied to a ClickHouse user profile that can read only system tables such as query_log, never customer data. Custom Profiles with node-group labels and node selectors replaced the default scheduler plus cluster autoscaler, which had wasted resources because of DaemonSet overhead and poor scale-in behaviour on m7gd node pools. Customers choose maintenance windows for upgrades, and ClickHouse handles EKS version maintenance.
- Bring high-performance analytics to your lakehouse with ClickHouse and Amazon S3 Tables
ClickHouse mediumAdept
ClickHouse's DataLakeCatalog engine connects to Amazon S3 Tables through the Iceberg REST endpoint, exposing a table bucket as a ClickHouse database that can be queried in place and written back to, with no data copied out. Reads resolve snapshots via the catalog and prune Parquet columns and row groups. Writes commit through an atomic metadata pointer swap authorized by SigV4/IAM, using a least-privilege policy that includes s3tables:UpdateTableMetadataLocation. A retail walkthrough on ClickHouse 26.8 joins purchases and returns, then writes a curated Iceberg table that other engines and AI agents can reuse. Caveats include single-level namespaces, DROP TABLE requiring purge=true, no ClickHouse Cloud support yet, and a recommendation to materialize into MergeTree for high-concurrency, low-latency dashboards.
- Building ClickHouse Cloud From Scratch in a Year
ClickHouse mediumAdept
ClickHouse Cloud was built in about a year on a "shared everything" architecture: compute and storage are separated, object storage (S3/GCS) is the primary store, and local SSDs handle caching and metadata. Control Plane and Data Plane are decoupled by a REST API façade plus SQS/PubSub for async events. Key infrastructure choices were managed Kubernetes (EKS) over kOps, Cilium over Calico for eBPF-based network isolation, Istio/Envoy SNI routing to get around per-account NLB limits, and shared S3 buckets with per-service subpaths to avoid bucket limits. Auto-scaling uses a Knative-style idler that suspends idle pods and a custom scaler with disruption budgets suited to stateful services. Object storage forced extra work on caching, prefetching and write-cost optimization.
- Unordered mode for S3 ClickPipes is now available
ClickHouse mediumAdept
S3 ClickPipes in ClickHouse Cloud now support an unordered ingestion mode. Instead of polling the bucket for files that sort lexicographically after the last one ingested, the pipe consumes S3 ObjectCreated event notifications through Amazon SQS, so backfills, retries and late-arriving files are no longer skipped. ClickPipes tracks state in a metadata store and reprocesses failed batches while guaranteeing exactly-once inserts. Setup requires an SQS queue policy, an IAM role trusted by the ClickHouse service with S3 and SQS permissions, and a sorting key on the target table; it can also be configured via the Terraform provider. GCS and Azure support are planned.
- How to create an AWS S3 bucket for Postgres backups
Neon mediumAdept
Part 1 of a series on automating nightly Postgres backups from many Neon projects to S3 via scheduled GitHub Actions covers the AWS setup. It registers GitHub's OIDC identity provider (token.actions.githubusercontent.com, audience sts.amazonaws.com), creates a web-identity IAM role scoped to a specific repository, and creates a general-purpose S3 bucket. A bucket policy then grants that role List, Get, Put and Delete access. Bucket region matters, since distance from the databases lengthens backup jobs, and the account ID, bucket name and role name should be stored as GitHub Secrets for part 2.