You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This assumes you have backups enabled with regularly scheduled backups: <https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/BACKUP.md/#scheduling>
46
+
47
+
Create a manifest with a point in time to restore from:
48
+
49
+
```yaml
50
+
apiVersion: k8s.mariadb.com/v1alpha1
51
+
kind: Restore
52
+
metadata:
53
+
name: restore
54
+
spec:
55
+
mariaDbRef:
56
+
name: mariadb
57
+
backupRef:
58
+
name: backup
59
+
targetRecoveryTime: 2025-03-13T09:00:00Z
60
+
```
61
+
62
+
Apply the manifest:
63
+
64
+
```text
65
+
kubectl apply -f restore-time.yaml
66
+
restore.k8s.mariadb.com/restore created
67
+
```
68
+
69
+
Check the status:
70
+
71
+
```text
72
+
kubectl get restore
73
+
NAME COMPLETE STATUS MARIADB AGE
74
+
restore False Running mariadb 4s
75
+
```
76
+
77
+
Watch the restore logs:
78
+
79
+
```text
80
+
kubectl logs -f restore-jtd9x
81
+
Defaulted container "mariadb" out of: mariadb, mariadb-operator (init)
0 commit comments