Files
deploy/docs/operator-manual/disaster_recovery.md
Divyang PatelandGitHub 73c1eb2f82 docs: Update disaster_recovery.md to reflect quay.io as docker container registry (#13520)
ArgoCD docker images are being used from `quay.io` registry.
Updated document to reflect that in the `bash` commands.

Signed-off-by: Divyang Patel <[email protected]>
2023-05-28 19:39:21 +00:00

793 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.