Skip to content

Instantly share code, notes, and snippets.

@asvignesh
Created May 8, 2020 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asvignesh/ed9e6650cf0eeb3037e0f496ef30b3a5 to your computer and use it in GitHub Desktop.
Save asvignesh/ed9e6650cf0eeb3037e0f496ef30b3a5 to your computer and use it in GitHub Desktop.
MongoDB application consistent pre-post backup script
mongo --eval 'db.fsyncUnlock()' --quiet
mongo --eval 'db.fsyncLock()' --quiet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment