Workflow: Backup and Restore¶
Protect and recover cluster secrets using SOPS-encrypted backups.
Creating Backups¶
# Backup one app
hydra gitops backup create prod.cluster-infra.cert-manager
# Backup all apps with backup-tagged refs
hydra gitops backup create 'prod.**'
Backups are stored as SOPS-encrypted YAML in the GitOps repository.
Listing Backups¶
Comparing with Live State¶
Restoring¶
What to Back Up¶
Configure backup refs in values:
The [backup] tag marks the ref for inclusion in backup operations.
Best Practices¶
- Back up before any uninstall
- Back up before cluster upgrades
- Commit backups to git (they're already encrypted)
- Test restore periodically
See Also¶
- hydra gitops backup
- Refs: Ref Tags —
[backup]tag - Workflow: Cluster Uninstall