Skip to content

Instantly share code, notes, and snippets.

@AJNOURI
Created November 2, 2016 03:59
Show Gist options
  • Save AJNOURI/00fe9e7bc90d43f09b69d3f0ba0c4c74 to your computer and use it in GitHub Desktop.
Save AJNOURI/00fe9e7bc90d43f09b69d3f0ba0c4c74 to your computer and use it in GitHub Desktop.
Backup mongodb
#!/bin/bash
mongodump --out /backup/mongodb-$(date +"%d-%m-%Y-%H:%M:%S")
mongodump --out /backup/mongodb-latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment