This now makes me Joy from Inside Out as I now know Mongo basics. Mongorestore –collection Interactions –db speakplay_analytics dump/speakplay_analytics/Interactions.bson Going further Id like to be able to exchange. The idea is to create a system to handle mongodb in a cool visual ide. This is my attempt to try to get out of my confort zone and learn something new. Mongorestore –db speakplay_analytics dump/speakplay_analytics/Interactions.bson First, Im not a java developer, I usually work in. If you want to restore specific collection (table) from a mongo db use –collection parameter to do so. Mongodump –db speakplay_analytics –collection Interactions In case if authentication is enabled extra parameters needs to be passed on to mongodump command, ParameterĭB in which the user is defined, mostly it would be “admin” database Mongodump.exe –db sc8prod_analytics –authenticationDatabase admin –username xxxx –password xxxx –out F:\MongoBackup\sc8prod_analytics Path of the database for which you want to create a backupģ) Specific Database behind authentication Mongodump –db speakplay_analytics –out c:/Backup/dump/speakplay_analytics The backup files will be created under \bin\dump folder This command will be backup all the databases available on the mongo instance. MongoDB provides a robust query mechanism for defining filtering criteria when retrieving documents. From the command prompt issue below commands, Backupġ) Backup all databases on the Mongo Instance Run the command prompt as administrator and navigate to Mongo/Bin folder in my case the path was C:\Databases\Mongo26\bin. I learned some commands from “ Back Up and Restore with MongoDB Tools” and would like to share. At this point of time I was Sad from Inside Out. Well reality is always bitter and I did not have those easy options. To me the task seemed simple and my initial thoughts were let’s get connected to RoboMongo or Mongo Management Studio, visit any one menu or right click on any one of the mongo database and I will find an option to backup my databases. Anger from your Inside Out and learn how to do that. Did that made you think? Why me? It should have been done by a DBA. While working on Sitecore at times one can come across a simple task for backing up and restoring mongo databases.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |