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:
- [Wayback/Archive] Signal Backup Rebuild: Dane Kouttron has a really nice write up about most of the process sans merging.
- [Wayback/Archive] bepaald · GitHub
- [Wayback/Archive] GitHub – bepaald/signalbackup-tools: Tool to work with Signal Backup files. · GitHub has the full merge steps⁴
- [Wayback/Archive] Signal Backup Merge · Issue #7 · bepaald/signalbackup-tools · GitHub
…
Well, good news! I have already implemented the merging feature a while ago! The only reason it is not documented in the README is because nobody has tested it (as far as I know). But the old version was tested (successfully, by two people) and this version is just a rewrite for the current database schema (and I did a little testing on some of my own backups of course), so I am pretty hopeful it will just work.
Instructions:
./signalbackup-tools [BACKUPFILE1] [PASSWORD1] --importthreads ALL --source [BACKUPFILE2] --sourcepassword [PASSWORD2] --output [NEW_BACKUP] --opassword [NEW_PASSWORD]Expect a ton of output (I should fix that). A few notes:
- Please keep your original backups. The program will only open then in read-only mode, so that should be fine. But don’t go deleting them or anything, you might need to restore from them if the program fails for some reason.
- Since the internal database schema changed, older and newer versions of backup files cannot be merged together. Either both files need to be databaseversion < 27, both need to be > 33, or both need to be in between. The databaseversion can be found by running
./signalbackup-tools [BACKUPFILE] [PASSWORD] --listthreads. - Just in case the database schema has changed in between the versions in your two backup files, you should probably import from the older into the newer file (so, the older file is the ‘–source’). If both files have the same version, it would be best to use the smallest file as source (just for speed).
- If you do not want to import all of the threads, you could replace ‘ALL’ in the above command with a comma-and-hyphen-separated list of threads (eg: 1,4,6-13,15). To find out which thread is which, again use
--listthreadsand use the ‘_id’ column.
…
- [Wayback/Archive] Signal Backup Merge · Issue #7 · bepaald/signalbackup-tools · GitHub
- [Wayback/Archive] GitHub – bepaald/signalbackup-viewer: Viewer for Signal Android backup files · GitHub
- Unmaintained because it is in signalbackup-tools [Wayback/Archive] GitHub – bepaald/get_signal_desktop_key: Attempt to get the unencrypted key for Signal Desktop · GitHub
- Unmaintained because it is in signalbackup-tools [Wayback/Archive] GitHub – bepaald/get_signal_desktop_key_mac: Attempt to get the unencrypted key for Signal Desktop (macOS) · GitHub
- [Wayback/Archive] GitHub – bepaald/signalbackup-tools: Tool to work with Signal Backup files. · GitHub has the full merge steps⁴
- [Wayback/Archive] Backing up Signal messages on Mac – Rob Allen
- [Wayback/Archive] Signal Backup Restore: Assistance with signalbackup-tools (or other suggestions?) : signal
- [Wayback/Archive] Signal desktop resync messages : signal
Linked devices are unlinked if they don’t connect for 30 days. The eaisest workaround is just leaving Signal open on your desktop. Alternately, you can just make a habit of launching it once per week.
…
Queue is 31 days currently.
…
Don’t individual messages not deliver if they’ve sat in the server queue for too many days too? I think last I heard it was 7 days… right?
So even if a linked device sits unconnected for 2 weeks, and you bring it back online, it’ll still be linked, but you’ll have a week-long gap in your chat history.
…
As u/whatnowproductions says, the TTL on the queue is 31 days. It is deliberately just a tad longer than the linked device timeout.
…
Awesome. So if I go on vacation and leave my laptop sitting for a couple weeks, I should be able to come back to it and open it up and it’ll download everything and have a matching copy of all the texts on my phone again?
- [Wayback/Archive] Getting my messages off Windows : signal
tldr; I want my years old messages taken from windows and put on my phone but I’m pretty sure I can’t.
…
signalbackup-tools
…
It is perfectly possible to move your chat history from Windows Desktop to Android.
https://transistor-man.com/restoring_android_signal_from_desktop.html
- [Wayback/Archive] Changing phone and starting to chat, will not mess too much with my old chat history, will it? (old phone unacessible at the moment) : signal
For Android, you can actually try to merge backups using signal-backup-tools. https://github.com/bepaald/signalbackup-tools/issues/7
- [Wayback/Archive] Option to relink Signal Desktop to the mobile client · Issue #956 · signalapp/Signal-Desktop
Queries:
- [Wayback/Archive] resync messages from signal desktop back to phone at DuckDuckGo
- [Wayback/Archive] “signalbackup-tools” at DuckDuckGo
- [Wayback/Archive] “signalbackup-tools” “merge” at DuckDuckGo
- [Wayback/Archive] “signalbackup-tools” “merging” at DuckDuckGo
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.
Share this:
- Share on Mastodon (Opens in new window) Mastodon
- Share on Bluesky (Opens in new window) Bluesky
- Share on Tumblr
- Share on Reddit (Opens in new window) Reddit
- Share on Threads (Opens in new window) Threads
- Tweet
- Share on Telegram (Opens in new window) Telegram
- Share on Nextdoor (Opens in new window) Nextdoor
- Share on WhatsApp (Opens in new window) WhatsApp
- Print (Opens in new window) Print
- Email a link to a friend (Opens in new window) Email
Related
This entry was posted on 2026/12/03 at 18:00 and is filed under Android Devices, C++, Development, Power User, Signal messenger, SocialMedia, Software Development, WhatsApp, WhatsApp for Android. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.






Leave a Comment