Skip to content

Can I configure the retention period for backups in remote storage? #612

Closed Answered by Slach
Programmeris asked this question in Q&A
Discussion options

You must be logged in to vote

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

general:
  keep_backup_remote: 30
  keep_backup_local: 1 

moreover, you need to call clickhouse-backup delete local backup_name after successful clickhouse-backup create_remote backup_name to avoid allocate additional disk space after original data parts will delete during background data part merges

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Slach
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Programmeris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants