github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/redis/templates/backupactionset.yaml (about) 1 apiVersion: dataprotection.kubeblocks.io/v1alpha1 2 kind: ActionSet 3 metadata: 4 name: redis-physical-backup 5 labels: 6 clusterdefinition.kubeblocks.io/name: redis 7 {{- include "redis.labels" . | nindent 4 }} 8 spec: 9 backupType: Full 10 env: 11 - name: DATA_DIR 12 value: {{ .Values.dataMountPath }} 13 - name: DP_DB_PORT 14 value: "6379" 15 backup: 16 preBackup: [] 17 postBackup: [] 18 backupData: 19 image: {{ include "redis.image" . }} 20 runOnTargetPodNode: true 21 syncProgress: 22 enabled: true 23 intervalSeconds: 5 24 command: 25 - bash 26 - -c 27 - | 28 {{- .Files.Get "dataprotection/backup.sh" | nindent 8 }} 29 restore: 30 prepareData: 31 image: {{ include "redis.image" . }} 32 command: 33 - bash 34 - -c 35 - | 36 {{- .Files.Get "dataprotection/restore.sh" | nindent 8 }} 37 postReady: []