How to back up your mongo-db data? (Orion)
First get your docker network id by doing:
docker network list
NETWORK ID NAME DRIVER SCOPE
2d3742dbf819 bridge bridge local
7e1234fa4fbe host host local
ef7c92559fc1 platform-poc_default bridge local
74f31cdb92ef none null local
Now using my network id (ef7c92559fc1) spawn a second mongo container which dumps data to volume shared with my localhost.
>> docker run -it --rm --network ef7c92559fc1 -v $(PWD)/mongo-data:/tmp mongo bash -c 'mongodump -v --host mongo-db:27017 --out=/tmp'
2020-03-24T20:36:29.371+0000 writing admin.system.version to
2020-03-24T20:36:29.377+0000 done dumping admin.system.version (1 document)
2020-03-24T20:36:29.377+0000 dumping up to 4 collections in parallel
2020-03-24T20:36:29.380+0000 writing orion-carouge.entities to
2020-03-24T20:36:29.386+0000 done dumping orion-carouge.entities (1 document)
2020-03-24T20:36:29.388+0000 writing orion.entities to
2020-03-24T20:36:29.388+0000 writing orion-carouge.csubs to
2020-03-24T20:36:29.393+0000 done dumping orion-carouge.csubs (2 documents)
2020-03-24T20:36:29.395+0000 done dumping orion.entities (0 documents)
>> ll $(PWD)/mongo-data
total 8
-rw-r--r-- 1 federicosismondi staff 804B Mar 24 21:37 README.md
drwxr-xr-x 4 federicosismondi staff 128B Mar 24 21:36 admin
drwxr-xr-x 4 federicosismondi staff 128B Mar 24 21:36 orion
drwxr-xr-x 6 federicosismondi staff 192B Mar 24 21:36 orion-carouge
How to back up mysql data? (for keyrock)
WIP
How to back up CrateDB?? (flavoured mysql ,used by QuantumLeap)
WIP