Skip to content

Instantly share code, notes, and snippets.

@KrustyHack
Created January 21, 2022 15:30
Show Gist options
  • Select an option

  • Save KrustyHack/66a58ecf33db73e5ee86800a9d531c5a to your computer and use it in GitHub Desktop.

Select an option

Save KrustyHack/66a58ecf33db73e5ee86800a9d531c5a to your computer and use it in GitHub Desktop.
ArgoCD disaster recovery

Disaster Recovery

You can use argocd-util 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 argoproj/argocd:$VERSION argocd-util export > backup.yaml

Import from a backup:

docker run -i -v ~/.kube:/home/argocd/.kube --rm argoproj/argocd:$VERSION argocd-util import - < backup.yaml

!!! note If you are running Argo CD on a namespace different than default remember to pass the namespace parameter (-n ). 'argocd-util export' will not fail if you run it in the wrong namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment