Can I configure the retention period for backups in remote storage? #612
-
I have a Clickhouse cluster that I back up with clickhouse-backup. Backups are uploaded to remote S3(Minio).I need to store backups for a limited time, for example, 1 month. Does clickhouse-backup have built-in backup rotation? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
yes, currently only simple rotation "keep last X backup" implements look https://github.com/AlexAkulov/clickhouse-backup/#default-config if you backup every day general:
keep_backup_remote: 30
keep_backup_local: 1 moreover, you need to call |
Beta Was this translation helpful? Give feedback.
-
@Slach Thanks for the answer! But I have two more questions. First. Are the Second. How to call |
Beta Was this translation helpful? Give feedback.
-
yes, this is properly command |
Beta Was this translation helpful? Give feedback.
yes, currently only simple rotation "keep last X backup" implements
look https://github.com/AlexAkulov/clickhouse-backup/#default-config
if you backup every day
you can use /etc/clickhouse-backup/config.yml
moreover, you need to call
clickhouse-backup delete local backup_name
after successfulclickhouse-backup create_remote backup_name
to avoid allocate additional disk space after original data parts will delete during background data part merges