The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Email Subscription

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 719 other subscribers

Some links for when I need to use signalbackup-tools

Posted by jpluimers on 2026/12/03

When you use Signal Desktop¹, your phone dies (really dead, not just an empty battery²) and it takes a while to get a replacement phone (hello warranty shizzle!) plus installing Signal on it and restoring the Signal backup³ there is a gap where you can still use Signal Desktop to sent/receive messages but these cannot be re-synced to your phone.

Word has that you can use the cross-platform signalbackup-tools for this scenario, so here are some links in case I want to dig into this:

Queries:

In any case, Signal is better than WhatsApp not just on the privacy level, but also on maintaining a local backup of data instead of relying just on your phone being alive.

Your phone dying means losing any WhatsApp Desktop (which is just a wrapper around WhatsApp web) you sent since the last back-up (usually the night before your phone died).

--jeroen

¹ you do keep more than one copy of Signal Desktop open at all times in order not to loose messages, do you?

² this happened to me: phone would not charge after battery died despite trying the usual (clean out phone connector and USB cable; try different USB cables, try different USB chargers; leave phone alone for a week to discharge any capacitors; operate in a cool place to ease any electronics)

³ you need your Signal recovery key for this which you did make a note of, right? Right?!

This key is never stored and different from the desktop keys shown in some of the above links.

4 full merge steps from [Wayback/Archive] signalbackup-tools/README.md at master · bepaald/signalbackup-tools · GitHub (Raw file: [Wayback/Archive] README.md)

Merging backups

NOTE: Although this feature generally seems to work quite well, it requires constant maintenance to keep up with changes in Signal’s internal database. You may encounter problems if this program happens to be slightly out of date when you run it. As always, feel free to open an issue to notify me of problems.

To merge two backups, the backups must be at compatible database versions. The database version can be found by running signalbackup-tools [input] [passphrase] --listthreads. Though many database versions work perfectly fine together, sometimes breaking changes are made. For example two databases at versions before and after 168 can not be merged successfully. Before opening an issue, if needed, import the backups into Signal and export them again to get them updated and at equal versions. To import all threads from a source database into a target (the ‘input’), run:

signalbackup-tools [input] [passphrase] --importthreads ALL --source [second_database] --sourcepassphrase [passphrase] --output [output_file] (--opassphrase [output passphrase])

As with all commands, if the optional output passphrase is omitted, the new backup file will have the same passphrase as the input backup file.

It is recommended to use the larger (containing the most data (contacts, threads,…)) as the ‘input’ and the smaller one as the source. If not all threads should be imported from the source, a list of thread ids can be supplied (e.g. --importthreads 1,2,3,8-16,20). The thread ids can be determined from the output of --listthreads. Threads can additionally be specified by display name, phone number or username by using --importthreadsbyname "Bob","Family Group","+14255550123".

Note this function does not automatically discard duplicate messages. If the backups you are merging contain (partly) the same messages — for example if they originate from some common backup/installation — you will probably want to crop the source backup by date before merging so it only contains messages not present in the target. For newer databases, omitting this step will cause errors, as Signal does not allow duplicate messages in its database anymore.

If you use this option and read this line, I would really appreciate it if you let me know the results. Either send me a mail (basjetimmer at yahoo-dot-com) or feel free to just open an issue on the tracker for feedback.

Leave a Comment