mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
792 B
792 B
Disaster Recovery
You can use argocd admin to import and export all Argo CD data.
Make sure you have ~/.kube/config pointing to your Argo CD cluster.
Figure out what version of Argo CD you're running:
argocd version | grep server
# ...
export VERSION=v1.0.1
Export to a backup:
docker run -v ~/.kube:/home/argocd/.kube --rm quay.io/argoproj/argocd:$VERSION argocd admin export > backup.yaml
Import from a backup:
docker run -i -v ~/.kube:/home/argocd/.kube --rm quay.io/argoproj/argocd:$VERSION argocd admin import - < backup.yaml
Note
If you are running Argo CD on a namespace different than default remember to pass the namespace parameter (-n ). 'argocd admin export' will not fail if you run it in the wrong namespace.