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
Copy file name to clipboardExpand all lines: CLAUDE.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -628,10 +628,12 @@ kubectl apply -f pvc.yaml
628
628
- Keep PVC names consistent for restore to work
629
629
- Test restores periodically
630
630
631
+
**Removing backups**: Just remove the `backup` label from the PVC. The `volsync-orphan-cleanup` ClusterCleanupPolicy runs every 15 minutes and automatically deletes orphaned ReplicationSource, ReplicationDestination, and ExternalSecret resources when the PVC no longer has a backup label.
632
+
631
633
**DON'T**:
632
634
- Add backup labels to system namespace PVCs (auto-excluded)
633
635
- Change PVC name if you want automatic restore
634
-
- Delete ReplicationSource/ReplicationDestination manually (Kyverno will recreate)
636
+
- Delete ReplicationSource/ReplicationDestination manually (Kyverno will recreate them if label still present)
635
637
- Use backup labels on non-Longhorn PVCs (snapshot support required)
# backup: "hourly" # Comment out or remove to disable backup
123
+
```
124
+
125
+
The `volsync-orphan-cleanup` ClusterCleanupPolicy runs every 15 minutes and automatically deletes the orphaned ReplicationSource, ReplicationDestination, and ExternalSecret. No manual cleanup needed.
126
+
127
+
**Note:** Removing the label does NOT delete existing backups from NFS. The Kopia repository on TrueNAS retains all previous snapshots. To re-enable backups later, simply re-add the label.
128
+
108
129
## How to Enable Backup for a PVC
109
130
110
131
Add a backup label to your PVC:
@@ -252,5 +273,6 @@ The following namespaces are excluded from automatic backup:
0 commit comments