Altinity / clickhouse-backup

Tool for easy backup and restore for ClickHouse® using object storage for backup files.
https://altinity.com
Other
1.29k stars 227 forks source link

How to specify the backup path? #1050

Closed oracle-sky closed 16 hours ago

oracle-sky commented 22 hours ago

Can I use clickhouse-backup to avoid backing up to the data directory and customize the backup file directory instead? For example, can I back up to /backup?

Slach commented 16 hours ago

https://github.com/Altinity/clickhouse-backup/?tab=readme-ov-file#dont-run-clickhouse-backup-remotely

this is physical backup which make hard links (not copy) this is not allocate extra disk space until original files deletion after background parts merge or mutations after creation a local backup you could move it to /backup/ look remote_storage: custom examples in https://github.com/Altinity/clickhouse-backup/tree/master/test/integration/rsync and https://github.com/Altinity/clickhouse-backup/blob/master/test/integration/config-custom-rsync.yml#L21-L25