Created
May 8, 2020 14:53
-
-
Save asvignesh/ed9e6650cf0eeb3037e0f496ef30b3a5 to your computer and use it in GitHub Desktop.
MongoDB application consistent pre-post backup script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongo --eval 'db.fsyncUnlock()' --quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongo --eval 'db.fsyncLock()' --quiet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment