Matryoshka: Difference between revisions
No edit summary |
|||
Line 10: | Line 10: | ||
🦈 m@jaws [~] scp -rp dump matryoshka: | 🦈 m@jaws [~] scp -rp dump matryoshka: | ||
--- | --- | ||
🪆 m@matryoshka [~/apps/RocketChat] docker stop rocketchat-rocketchat-1 | |||
🪆 m@matryoshka [~/apps/RocketChat] docker cp dump rocketchat-mongodb-1:/tmp/ | 🪆 m@matryoshka [~/apps/RocketChat] docker cp dump rocketchat-mongodb-1:/tmp/ | ||
🪆 m@matryoshka [~/apps/RocketChat] docker exec rocketchat-mongodb-1 bash -c 'mongo rocketchat --eval "db.dropDatabase()"' | 🪆 m@matryoshka [~/apps/RocketChat] docker exec rocketchat-mongodb-1 bash -c 'mongo rocketchat --eval "db.dropDatabase()"' | ||
🪆 m@matryoshka [~/apps/RocketChat] docker exec rocketchat-mongodb-1 bash -c 'mongorestore --db rocketchat /tmp/dump/rocketchat' | 🪆 m@matryoshka [~/apps/RocketChat] docker exec rocketchat-mongodb-1 bash -c 'mongorestore --db rocketchat /tmp/dump/rocketchat' | ||
🪆 m@matryoshka [~/apps/RocketChat] docker compose up -d |
Revision as of 22:58, 13 July 2022
Matryoshka is a docker container host.
It also runs my only gitlab runner. So it is required to be running for gitlab jobs to run.
History
Moving data from old jaws rocketchat VM to matroyshka docker container
I moved mongo data in from old jaws VM:
🦈 m@jaws [~] mongodump --host=localhost --db rocketchat 🦈 m@jaws [~] scp -rp dump matryoshka: --- 🪆 m@matryoshka [~/apps/RocketChat] docker stop rocketchat-rocketchat-1 🪆 m@matryoshka [~/apps/RocketChat] docker cp dump rocketchat-mongodb-1:/tmp/ 🪆 m@matryoshka [~/apps/RocketChat] docker exec rocketchat-mongodb-1 bash -c 'mongo rocketchat --eval "db.dropDatabase()"' 🪆 m@matryoshka [~/apps/RocketChat] docker exec rocketchat-mongodb-1 bash -c 'mongorestore --db rocketchat /tmp/dump/rocketchat' 🪆 m@matryoshka [~/apps/RocketChat] docker compose up -d