Skip to content

How am I supposed to do application-aware-backups and restores? #7419

Closed Answered by ccremer
ccremer asked this question in Community support Q&A
Discussion options

You must be logged in to vote

I have found a solution.

I went back to CSI Snapshots. However, this time I'm using the resource filter approach.
I created another Storage Class that the DB uses. This storage class is excluded by this policy:

apiVersion: v1
kind: ConfigMap
metadata:
  name: volume-policy
  namespace: velero
data:
  resource-policy.yaml: |
    version: v1
    volumePolicies:
    - conditions:
        storageClass:
          - managed-csi-no-backup
      action:
        type: skip

Further, the Pod annotation backup.velero.io/backup-volumes is removed, otherwise it's still using FSB.
The restore policy to remove the volume name is also not required.
The hook to create a SQL dump is still working.

The resto…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ccremer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant