github.com/argoproj/argo-cd/v2@v2.10.9/docs/operator-manual/disaster_recovery.md (about) 1 # Disaster Recovery 2 3 You can use `argocd admin` to import and export all Argo CD data. 4 5 Make sure you have `~/.kube/config` pointing to your Argo CD cluster. 6 7 Figure out what version of Argo CD you're running: 8 9 ```bash 10 argocd version | grep server 11 # ... 12 export VERSION=v1.0.1 13 ``` 14 15 Export to a backup: 16 17 ```bash 18 docker run -v ~/.kube:/home/argocd/.kube --rm quay.io/argoproj/argocd:$VERSION argocd admin export > backup.yaml 19 ``` 20 21 Import from a backup: 22 23 ```bash 24 docker run -i -v ~/.kube:/home/argocd/.kube --rm quay.io/argoproj/argocd:$VERSION argocd admin import - < backup.yaml 25 ``` 26 27 !!! note 28 If you are running Argo CD on a namespace different than default remember to pass the namespace parameter (-n <namespace>). 'argocd admin export' will not fail if you run it in the wrong namespace.