Skip to content

Commit

Permalink
temp: add pitr logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yabinji committed Apr 7, 2024
1 parent ba41d0a commit 812d190
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions addons/mogdb/templates/actionset-brm-full.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apiVersion: dataprotection.kubeblocks.io/v1alpha1
kind: ActionSet
metadata:
name: mogdb-brm-full
labels:
clusterdefinition.kubeblocks.io/name: mogdb
{{- include "mogdb.labels" . | nindent 4 }}
spec:
backupType: Full
env:
- name: DATA_DIR
value: {{ .Values.dataMountPath }}/mogdb/data
- name: IMAGE_TAG
value: 5.0.5
- name: GAUSSHOME
value: /usr/local/mogdb
- name: LD_LIBRARY_PATH
value: /usr/local/mogdb/lib
- name: PATH
value: /usr/local/mogdb/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- name: PGPORT
value: "26000"
- name: PGHOST
value: /var/lib/mogdb/tmp
- name: SSH_RSA
valueFrom:
secretKeyRef:
name: mogdb-ssh-rsa-secret
key: id_rsa
backup:
preBackup: []
postBackup: []
backupData:
image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:$(IMAGE_TAG)
runOnTargetPodNode: true
command:
- bash
- -c
- |
set -x
{{- .Files.Get "scripts/library.sh" | nindent 8 }}
{{- .Files.Get "dataprotection/ssh.sh" | nindent 8 }}
{{- .Files.Get "dataprotection/brm-info-collector.sh" | nindent 8 }}
{{- .Files.Get "dataprotection/brm-common.sh" | nindent 8 }}
{{- .Files.Get "dataprotection/brm-full-backup.sh" | nindent 8 }}
syncProgress:
enabled: true
intervalSeconds: 5
restore:
prepareData:
image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:$(IMAGE_TAG)
command:
- bash
- -c
- |
set -x
{{- .Files.Get "dataprotection/brm-full-restore.sh" | nindent 8 }}
postReady: []

0 comments on commit 812d190

Please sign in to comment.