t***@sanoia.com
2018-11-26 22:36:12 UTC
Hello!
I have a huge logs collection on my database, and what I need to do is :
1) Dump it to a backup file
2) Drop it
3) Everyday, dump the new entries to backup files
So it's basically incremental backup, but I've got the basic installation,
so no ReplicaSet, no nothing
To prevent writings between 1) and 2), I put a fsyncLock on the database,
But I realized that it prevents the dropping of the database.
*Is there a way to block writings to the DB so that there's nothing written
between the dump and the drop (I would lose them otherwise).*
I've looked everywhere, but as usual no fitting answer...
Thank you in advance
--
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/2966762b-d5f0-410a-bc9e-4830669ee6c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have a huge logs collection on my database, and what I need to do is :
1) Dump it to a backup file
2) Drop it
3) Everyday, dump the new entries to backup files
So it's basically incremental backup, but I've got the basic installation,
so no ReplicaSet, no nothing
To prevent writings between 1) and 2), I put a fsyncLock on the database,
But I realized that it prevents the dropping of the database.
*Is there a way to block writings to the DB so that there's nothing written
between the dump and the drop (I would lose them otherwise).*
I've looked everywhere, but as usual no fitting answer...
Thank you in advance
--
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/2966762b-d5f0-410a-bc9e-4830669ee6c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.