---
title: "ClickHouse DBMS With Wasabi"
slug: "clickhouse-with-wasabi"
updated: 2026-05-28T17:20:30Z
published: 2026-05-28T17:20:30Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wasabi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ClickHouse DBMS With Wasabi

[ClickHouse](https://clickhouse.com/) has been validated for use with Wasabi Object Storage. ClickHouse is a high-performance, open-source, column-oriented database management system (DBMS) designed for online analytical processing (OLAP) and real-time data analytics.

#### Prerequisites

- ClickHouse Server v.23.0 or later
- ClickHouse Backup Tool (Optional, but recommended)
- ClickHouse Open Source or Paid Version
- Active Wasabi Object Storage Account
- Wasabi Access Keys
- Wasabi Bucket

## Reference Architecture Diagram

![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/image-JPAFX2NF.png)

## Configuration

### Creating a Wasabi Bucket

1. Log in to the Wasabi Console.
2. Click **Buckets** then click **Create Bucket**.
3. Enter a name (for example, “clickhouse-backup”).
4. Select a region (for example, us-east-1).
5. Be sure to keep Versioning and Object Lock disabled.
6. Click **Create**.

### Creating an IAM Sub-User

1. ### Click **Users** then click **Create User**.
2. Assign a name for the user (for Example, “clickhouse-s3-user).
3. Select **Programmatic Access**.
4. Create a new Group using the policy below:

`{`

` &nbsp;"Version": "2012-10-17",`

` &nbsp;"Statement": [`

` &nbsp; &nbsp;{`

` &nbsp; &nbsp; &nbsp;"Effect": "Allow",`

` &nbsp; &nbsp; &nbsp;"Action": [`

` &nbsp; &nbsp; &nbsp; &nbsp;"s3:GetBucketLocation",`

` &nbsp; &nbsp; &nbsp; &nbsp;"s3:ListAllMyBuckets"`

` &nbsp; &nbsp; &nbsp;],`

` &nbsp; &nbsp; &nbsp;"Resource": "arn:aws:s3:::*"`

` &nbsp; &nbsp;},`

` &nbsp; &nbsp;{`

` &nbsp; &nbsp; &nbsp;"Effect": "Allow",`

` &nbsp; &nbsp; &nbsp;"Action": "s3:*",`

` &nbsp; &nbsp; &nbsp;"Resource": [`

` &nbsp; &nbsp; &nbsp; &nbsp;"arn:aws:s3:::clickhouse-backup",`

` &nbsp; &nbsp; &nbsp; &nbsp;"arn:aws:s3:::clickhouse-backup/*"`

` &nbsp; &nbsp; &nbsp;]`

` &nbsp; &nbsp;}`

` &nbsp;]`

`}`

1. Finish and download the Access and Secret Keys.

### Installing ClickHouse

If ClickHouse is not installed, below is an example for Linux - Ubuntu:

`sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4`

`echo "deb https://packages.clickhouse.com/deb stable main" | sudo tee /etc/apt/sources.list.d/clickhouse.list`

`sudo apt update`

`sudo apt install clickhouse-server clickhouse-client -y`

`sudo systemctl start clickhouse-server`

### Configuring S3 Disk in ClickHouse

1. Create a file /etc/clickhouse-server/config.d/backup_disk.xml.

`&lt;clickhouse&gt;`

` &nbsp;&lt;storage_configuration&gt;`

` &nbsp; &nbsp;&lt;disks&gt;`

` &nbsp; &nbsp; &nbsp;&lt;s3_backup&gt;`

` &nbsp; &nbsp; &nbsp; &nbsp;&lt;type&gt;s3&lt;/type&gt;`

` &nbsp; &nbsp; &nbsp; &nbsp;&lt;endpoint&gt;https://s3.ap-southeast-1.wasabisys.com/clickhouse-backup/&lt;/endpoint&gt;`

` &nbsp; &nbsp; &nbsp; &nbsp;&lt;access_key_id&gt;YOUR_ACCESS_KEY&lt;/access_key_id&gt;`

` &nbsp; &nbsp; &nbsp; &nbsp;&lt;secret_access_key&gt;YOUR_SECRET_KEY&lt;/secret_access_key&gt;`

` &nbsp; &nbsp; &nbsp; &nbsp;&lt;s3_max_single_part_upload_size&gt;10485760&lt;/s3_max_single_part_upload_size&gt;`

` &nbsp; &nbsp; &nbsp; &nbsp;&lt;upload_part_size&gt;67108864&lt;/upload_part_size&gt;`

` &nbsp; &nbsp; &nbsp; &nbsp;&lt;s3_max_put_rps&gt;25&lt;/s3_max_put_rps&gt;`

` &nbsp; &nbsp; &nbsp; &nbsp;&lt;metadata_path&gt;/var/lib/clickhouse/disks/s3_backup/metadata&lt;/metadata_path&gt;`

` &nbsp; &nbsp; &nbsp;&lt;/s3_backup&gt;`

` &nbsp; &nbsp;&lt;/disks&gt;`

` &nbsp;&lt;/storage_configuration&gt;`

`&lt;/clickhouse&gt;`

1. Restart ClickHouse.

`sudo systemctl restart clickhouse-server`

1. Check log /var/log/clickhouse-server/clickhouse-server.log for confirmation.

### Installing ClickHouse-Backup Tool (Optional)

This tool simplifies backup/export and upload to S3:

`wget https://github.com/AlexAkulov/clickhouse-backup/releases/download/v2.5.3/clickhouse-backup`

`chmod +x clickhouse-backup`

`sudo mv clickhouse-backup /usr/local/bin/`

### Configuring ClickHouse-Backup Tool

Edit /etc/ClickHouse-backup/config.yml.

`general:`

` &nbsp;remote_storage: s3`

` &nbsp;disable_progress_bar: true`

`s3:`

` &nbsp;bucket: clickhouse-backup`

` &nbsp;endpoint: s3.ap-southeast-1.wasabisys.com`

` &nbsp;access_key: YOUR_ACCESS_KEY`

` &nbsp;secret_key: YOUR_SECRET_KEY`

` &nbsp;use_path_style: true`

` &nbsp;compression_format: tar`

` &nbsp;compression_level: 1`

### Running Backup and Restoring Operations

Backup a specific database:

`clickhouse-backup create my_backup`

` clickhouse-backup upload my_backup`

Restore a specific database:

`clickhouse-backup download my_backup`

`clickhouse-backup restore my_backup`

### Verification on Wasabi

1. Navigate to the Wasabi Console.
2. Open the “clickhouse-backup” bucket.
3. Verify that the backup folder/files exist.
