kubernetes/components/kopiur/backup/snapshotpolicy.yaml
1
---
2
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/kopiur.home-operations.com/snapshotpolicy_v1alpha1.json
3
apiVersion: kopiur.home-operations.com/v1alpha1
4
kind: SnapshotPolicy
5
metadata:
6
name: ${APP}
7
annotations:
8
kopiur.home-operations.com/allow-identity-change: "true"
9
spec:
10
copyMethod: ${KOPIUR_COPYMETHOD:=Snapshot}
11
errorHandling:
12
ignoreDirErrors: ${KOPIUR_IGNORE_DIR_ERRORS:=false}
13
repository:
14
kind: ClusterRepository
15
name: nas
16
retention:
17
keepDaily: 7
18
keepHourly: 24
19
keepMonthly: 6
20
keepWeekly: 4
21
sources:
22
- pvc:
23
name: ${APP}
24
verification:
25
deep:
26
schedule:
27
cron: H 5 1 * *
28
quick:
29
schedule:
30
cron: H 3 * * *
31
volumeSnapshotClassName: ${KOPIUR_SNAPSHOTCLASS:=miroir}