Skip to content

Commit

Permalink
clickhouse backup fix (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaka authored Sep 8, 2024
1 parent 28504ff commit 8e1ed7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
- "/bin/bash"
- "-c"
args:
- export backupname=backup$(date +'%Y%m%d%H'); echo "BACKUP ALL TO S3('https://{{ .Values.clickhouse.backup.bucketName }}.s3.{{ .Values.clickhouse.backup.region }}.amazonaws.com/$backupname/', '$ACCESS_KEY', '"$SECRET_KEY"')" > /tmp/backQuery.sql; clickhouse-client -h clickhouse-opik-clickhouse --send_timeout 600000 --receive_timeout 600000 --port 9000 --queries-file=/tmp/backQuery.sql;
- export backupname=backup$(date +'%Y%m%d%H%M'); echo "BACKUP ALL EXCEPT DATABASE system TO S3('https://{{ .Values.clickhouse.backup.bucketName }}.s3.{{ .Values.clickhouse.backup.region }}.amazonaws.com/$backupname/', '$ACCESS_KEY', '$SECRET_KEY');" > /tmp/backQuery.sql; clickhouse-client -h clickhouse-opik-clickhouse --send_timeout 600000 --receive_timeout 600000 --port 9000 --queries-file=/tmp/backQuery.sql;
env:
- name: CLICKHOUSE_USER
value: {{ .Values.clickhouse.adminUser.username }}
Expand Down
1 change: 1 addition & 0 deletions deployment/helm_chart/opik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ clickhouse:
# region: ""
# secretName: ""
# schedule: ""
# baseBackup: ""
operator:
enabled: true

Expand Down

0 comments on commit 8e1ed7b

Please sign in to comment.