Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump and restore SLPDB #30

Open
sajal opened this issue Dec 13, 2021 · 0 comments
Open

Dump and restore SLPDB #30

sajal opened this issue Dec 13, 2021 · 0 comments

Comments

@sajal
Copy link
Contributor

sajal commented Dec 13, 2021

re: #22

SLPDB is relatively straightforward

Need to run these from a machine/container that has mongodb installed, and can talk to mongodb-slpdb.

We should stop slpdb and slpserve containers prior to doing a restore. Not sure if there is any need to stop these while dumping.

Dump

mongodump -d slpdb_test --archive=/tmp/slpdb_test.mongo.gz --authenticationDatabase admin --gzip mongodb://mongouser:mongopass@mongodb-slpdb:27017

Restore

mongorestore  --drop  --authenticationDatabase admin --archive=/tmp/slpdb_test.mongo.gz --gzip   mongodb://mongouser:mongopass@mongodb-slpdb:27017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant