natario1 / whatsapp-database-merger

Small command-line utility to safely merge multiple WhatsApp backups (msgstore.db) into one.
63 stars 3 forks source link

How to use? #2

Open DarkXonline opened 2 years ago

DarkXonline commented 2 years ago

Can you tell me a detail instruction on how to use the tool? Especially for windows user with little knowledge.

For example, how to arrange the msgstore.db; eg: I want to combine mgstore (6March) and mgstore (7March), how to do it? How about the naming scheme? naming it mgstore1.db for 7 March, and mgstore2.db for 6 March?

What command to make in cmd (windows) to combine it? How to define output file?

Hope you can answer this ASAP as I really on my end needs here :D Sorry for any bad English used.

natario1 commented 2 years ago

You can name the databases however you want, as long as they end in .db. Just choose a folder , like desktop, and put the decrypted databases in Desktop\input subfolder. After running the tool (see README), you will find the merged database in Desktop\output.

DarkXonline commented 2 years ago

Thanks for answering, it is working now but I got errors when merging the .db

image

Any fix for this one?

natario1 commented 2 years ago

Are you able to modify the source code and rebuild the tool with gradlew build? If yes, I can tell you which line to modify. If not, you'll have to wait for next version

DarkXonline commented 2 years ago

I don't know much about modifying or building the source code, I just download the compiled binary from release page and try it out that's all :)

SenCodeMaker commented 2 years ago

hello having the same issue of old db inconsistency i'm interested in creating pull request to solve this. i use to develop in java and i know a bit of gradle but i would use some guiding to update kotlin code and rebuild.

SenCodeMaker commented 2 years ago

here is my error i don't know if this column is softly ignorable for consistency

image

SenCodeMaker commented 2 years ago

image

I builded another version disabling consistency checks but it gives me too large content error any thoughts ?

natario1 commented 2 years ago

Can you identify which table and column gives you this error? By looking at previous logs.

After you identify it, you can exclude this column in the schema (add it to the list of excludes)

SenCodeMaker commented 2 years ago

ok i can try that after, i saw only messages_quotes.message_row_id and another not so important table was concerned so i skipped consistency tests.

again for the query length problem i patched with a catch in database#executeWithRows to ignore insert that don't succeed. right now it's been running for two hours. I wait and see....

SenCodeMaker commented 2 years ago

finally it was not able to do the job because my bases containing too much large messages and also inconsitencies maybe, it got it right directly in sql : https://github.com/SenCodeMaker/whatsapp-database-merger it much more performant also.

durmazt commented 1 year ago

"input databases must be already decrypted" I have msgstore.db.crypt14 and msgstore.db.crypt12 how to decrypt an encrypt those things?

JSchimmelpfennig commented 5 months ago

"input databases must be already decrypted" I have msgstore.db.crypt14 and msgstore.db.crypt12 how to decrypt an encrypt those things?

You can use wa-crypt-tools.