Skip to content

Instantly share code, notes, and snippets.

@tonek

tonek/mongobackup.sh

Created Apr 14, 2013
Embed
What would you like to do?
Backuping mongo database to dropbox
mkdir ~/db_backup/
mongodump --out ~/db_backup/ --db local
tar -cvf ~/db_backup.tar ~/db_backup
rm -rf ~/db_backup
#https://github.com/andreafabrizi/Dropbox-Uploader
~/dropbox_uploader.sh upload ~/db_backup.tar /db_backup.tar
rm ~/db_backup.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.