Interview Prep/GitOps & Argo CD/Repo Structure, Flux, Scaling & DR

How do you back up and restore Argo CD?

IntermediateConceptRepo Structure, Flux, Scaling & DR
Answer

Ideally everything is already in Git: Applications, Projects, ApplicationSets and Argo CD's own config via app-of-apps. For the rest (cluster Secrets, repo credentials, settings changed in the UI):

argocd admin export -n argocd > argocd-backup-$(date +%F).yaml
argocd admin import -n argocd - < argocd-backup-2025-06-01.yaml

Also back up Sealed Secrets keys and any external dependencies (SSO client secrets). Restore order: install Argo CD, restore secrets and settings, apply the root app.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Repo Structure, Flux, Scaling & DR