I'd like to me able to import a backup into my current conversations in whatsapp or merge one or more db.crypt files together so that I can import them all into whatsapp.
I had a lot of conversations in my backup, but instead of importing them, my whatsapp received 613 new messages so I don't have any of my old conversations. I can import them, but then I lose my current conversations and vice versa.
I'm willing to play around with code if it helps. My speciality is SQL, ASP, Java (not as good at it anymore, but can pick it up fairly quickly)
1. Create a new backup (menu Button - Settings - Chat Settings - Backup Chat history)
2. Force-Close Whatsapp so that it won't receive any new messages.
3. now you should have two .db.crypt files, the older one with all your backupped chats and the newer one with ~ 613+ messages. Use Whatsapp Xtract to convert the .db.crypt files to .htm and unencrypted .db files
4. Now use the tool SQLite Compare (see howto) to merge the two .db files into one
5. Now copy the merged .db file as "msgstore.db" into the folder /sdcard/WhatsApp/Databases and make sure that there isn't any other file there (copy the other files in another folder)
6. uninstall whatsapp, install whatsapp and choose yes when asked to import the backup
If you want to include the merging function into the code of Whatsapp Xtract, you should have a look at the SQLite commands of Python. It's quite similar to SQL. Until someone has done this, you can use the mentioned tool SQLite Compare, though it's a bit difficult to use.