-
Can I compress (tar.bz2) local backups directories, and delete it (using rm) after compression, to save disk space? Of course for restore I'd uncompress it to original state for recovery. Will it work? |
Beta Was this translation helpful? Give feedback.
Answered by
Slach
Jul 6, 2025
Replies: 1 comment 5 replies
-
It have no sense. Local backup is just a hard-links to exist data files, so it doesn't allocate disk space, until original files not deleted (during background merges for example) And whole clickhouse data already compressed by LZ4 or ZSTD, so additional compression also have no sense in modern version of clickhouse-server |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you can safely compress and remove
/var/lib/clickhouse/backup/backup_name
.About current compression Which
clickhouse-sever
version do you use?Do you have
*.cmrk*
files in your backup files? or just*.mrk*
?