-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Merging multiple backups together #80
Comments
Hey I am also looking for a similar solution. Have you found a way as yet? |
Since multiple users request this feature, I will give a quick response here. The ability to merge backups seems to me that it is more suitable to be a separate project. However, I'm not entirely closing the door on the idea. There's a chance I might reconsider and incorporate it into the exporter or implement it in a new project in the future. As a result, I'll keep this issue open until further notice. |
I'm also looking for a similar functionality. Being able to merge an older backup that still has all the media with a newer backup that no longer has them would be extremely useful. Merging would have it behave sort of like an incremental backup, i.e. newer messages would be added to an existing backup. This way we could freely delete media to keep the Whatsapp database small on our phones, and still be able to have a full incremental backup containing everything including deleted messages. |
I just came across natario1/whatsapp-database-merger. You may want to take a look if you have yet to. |
It seems that the database changes are significant since the last code update, such that it no longer works, as noted by a commenter in issue #5 over on that project. There was also a WhatsApp_DB_Merger project as well, though that one also was for the old database format and also apparently no longer works. |
There is an extensive discussion on merging databases over in El Davoo's Whatsapp Crypt Tools topic #118, which I found quite informative. It includes someone that was actually successful in doing it, so you can learn about it at that post. Unfortunately, as you can see there, it is rather complicated. The issue is (at least in the newer databases that I am familiar with), the program assigns a variety of jid_row_id's to the same number ([email protected]), as well as a unique chat_row_id. So across two different databases, for each phone number you will have completely different jid_row_id's and chat_row_id. All of those will need to be changed, across dozens of different tables that make use of those identifiers. Then, the message_row_id in message is not used just in message, but dozens of other tables that will have to all be changed so as not to break the references. According to the aforementioned discussion, it can definitely be done, but @KnugiHK is probably right to suggested it is suited for a standalone project, as it is going to be a substantial undertaking. It would be extremely useful though! |
I wouldn't be surprised if they no longer work. The biggest challenge in maintaining WhatsApp-related tools is the frequent changes to WhatsApp's internals and, of course, the lack of official development documentation (which is likely only available in their office). I'm also thinking about how we could leverage LLMs to make things easier. Open to any discussions on this! |
Is your feature request related to a problem? Please describe.
I have whatsapp backups from the same phone number, and from different phones and time periods.
Describe the solution you'd like
It would be great to merge them together to view all chat continuously.
Additional context
I'm inspired to ask this by https://github.com/bepaald/signalbackup-tools that has this capability for Signal backups. In that case the databases are merged before html export. I guess that is a bit tricker (although very useful), but perhaps also the outputted html files can be merged if they match the same contact/conversation?
The text was updated successfully, but these errors were encountered: