Kenneth Odo
2018-10-30 13:55:21 UTC
Hello Great people,
I am seeking for a script that can help me take a backup of the MongoDB
environments.
We currently do the backup using a third party backup solution but manually
have to stop the replication and balancer on each shard before the backup
is taken for a consistent data backup. The process is not effective and I
am seeking to find a way to automate the process.
The process may involve the below:
- Check status of the database: rs.status()
- Check which is master db.isMaster()
- Stop the balancer sh.stopbalancer()
- Stop replication fsyncLock()
Upon completion of the backup,
- start balancer
- start replication
Anyone with a solution or ideas should please assist.
Best regards,
Ken
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAByhRz8Huxdu%2B-DQDxtdiJbz_MMVJ9_6YcvjMd%2BUPojzgjhb6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
I am seeking for a script that can help me take a backup of the MongoDB
environments.
We currently do the backup using a third party backup solution but manually
have to stop the replication and balancer on each shard before the backup
is taken for a consistent data backup. The process is not effective and I
am seeking to find a way to automate the process.
The process may involve the below:
- Check status of the database: rs.status()
- Check which is master db.isMaster()
- Stop the balancer sh.stopbalancer()
- Stop replication fsyncLock()
Upon completion of the backup,
- start balancer
- start replication
Anyone with a solution or ideas should please assist.
Best regards,
Ken
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAByhRz8Huxdu%2B-DQDxtdiJbz_MMVJ9_6YcvjMd%2BUPojzgjhb6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.