Skip to content

Instantly share code, notes, and snippets.

@tonek
Created April 14, 2013 17:14
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 tonek/5383455 to your computer and use it in GitHub Desktop.
Save tonek/5383455 to your computer and use it in GitHub Desktop.
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