In order to make a backup of the local MongoDB one can use the mongodump program. This program is a command line tool that allows to dump the complete or partial content of a MongoDB instance to some file.
To create such a dump one simply calls the mongodump binary. It takes a multitude of different parameters, where the most importatnt ones are:
After dumping the database one can then use the created file(s) and copy them into a directory under version control or simply send them to other people. If one receives such a database dump one can use the mongorestore program in order to restore the database.
Again one simply has to call the mongorestore binary with the desired parameters. The most important ones are the same as for the mongodump except that it does not accept a query or out parameter, instead one can specify a --dir PATH paramter to tell the program there to look for the dump files and a --drop parameter that instructs the program to drop the old database.
In order to make a backup of the local MongoDB one can use the mongodump program. This program is a command line tool that allows to dump the complete or partial content of a MongoDB instance to some file.
To create such a dump one simply calls the mongodump binary. It takes a multitude of different parameters, where the most importatnt ones are:
After dumping the database one can then use the created file(s) and copy them into a directory under version control or simply send them to other people. If one receives such a database dump one can use the mongorestore program in order to restore the database.
Again one simply has to call the mongorestore binary with the desired parameters. The most important ones are the same as for the mongodump except that it does not accept a query or out parameter, instead one can specify a --dir PATH paramter to tell the program there to look for the dump files and a --drop parameter that instructs the program to drop the old database.
In order to make a backup of the local MongoDB one can use the mongodump program. This program is a command line tool that allows to dump the complete or partial content of a MongoDB instance to some file.
To create such a dump one simply calls the mongodump binary. It takes a multitude of different parameters, where the most importatnt ones are:
After dumping the database one can then use the created file(s) and copy them into a directory under version control or simply send them to other people. If one receives such a database dump one can use the mongorestore program in order to restore the database.
Again one simply has to call the mongorestore binary with the desired parameters. The most important ones are the same as for the mongodump except that it does not accept a query or out parameter, instead one can specify a --dir PATH paramter to tell the program there to look for the dump files and a --drop parameter that instructs the program to drop the old database.
On Ubuntu:
First:
sudo apt-get install rsync
sudo apt-get install duplicity
Then:
rsync -avz * myuser@myremote.server.com:/backup/dir/
duplicity --verbosity info --allow-source-mismatch /data/to/backup/securly/also/with/encrypted/transfer/ rsync://myuser@myremote.server.com//backup/dir/for/encrypted/backups/
Finally:
To automate this with periodic execution, use "crontab"-entries, and/or add logic process functionality by using shell scripts.
The solution is a little Program, for Windows, called “Dropbox Folder Sync”. You can find it on the following Homepage: http://satyadeepk.in/dropbox-folder-sync/. It’s freeware and only needs an NTFS partition with DropBox installed on it. It works up from Windows XP and only requires .NET framework 4.0.
Once installed, you would be able to Sync/Unsync each folder with an right click on it. “Dropbox Folder Sync” will then copy this folder to your DropBox folder, and create an symbolic link on the same location with the junction utility.