//Inside Container
kubectl exec -it -n fda mongodb-2 /bin/bash
cd tmp
mkdir -p 10Aug2021
mongoexport --db fda-platform-extraction --collection cleanup_metadata --out /tmp/10Aug2021/cleanup_metadata_DEV.json
kubectl exec -it -n fda mongodb-2 /bin/bash
cd tmp
mkdir -p 10Aug2021
mongoexport --db fda-platform-extraction --collection cleanup_metadata --out /tmp/10Aug2021/cleanup_metadata_DEV.json
//Inside JumpServer
mkdir -p 10Aug2021
cd 10Aug2021
kubectl cp mongodb-2:/tmp/10Aug2021/ . -n fda
mkdir -p 10Aug2021
cd 10Aug2021
kubectl cp mongodb-2:/tmp/10Aug2021/ . -n fda
No comments:
Post a Comment