Skip to content

Instantly share code, notes, and snippets.

@wikiti
Last active May 4, 2018 08:55
Show Gist options
  • Save wikiti/37d1356d5d51d01c5e9cfe17911d9654 to your computer and use it in GitHub Desktop.
Save wikiti/37d1356d5d51d01c5e9cfe17911d9654 to your computer and use it in GitHub Desktop.
Create a MongoDB backup with mongodump
# Run in a shell the following command:
mongodump
# A `dump` folder will be created on the current working directory.
# To compress that folder, use dump.
tar -czvf backup.tar.gz dump/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment