BACKUP tar archive - implement compression_method and compression_level
Author: fnnbrrCreated Sep 28, 2026Updated Sep 29, 2026
Labelsfeaturecomp-backupexternal
Company or project name
No response
Use case
Creating tar backups of my ClickHouse databases using advanced settings, such as zstd and higher compression levels.
Describe the solution you'd like
The docs mention backup compression settings here, but don't indicate that these settings aren't implemented for tar archives. I would like these options implemented for tar archives, or at least for the docs to be updated with these limitations.
Received exception from server (version 24.12.6):
Code: 48. DB::Exception: Received from localhost:9000. DB::Exception: Using compression_method and compression_level options are not supported for tar archives. (NOT_IMPLEMENTED)
(query: BACKUP DATABASE plausible_events_db TO File('plausible_events_db-test.tar.zst') SETTINGS compression_method='zstd', compression_level=10)Describe alternatives you've considered
No response
Additional context
No response
Source: ClickHouse/ClickHouse