|
| 1 | +# WhatApp DB |
| 2 | + |
| 3 | +Always start by creating a [Signal](docs/Signal.md) backup. |
| 4 | + |
| 5 | +1. Create WhatsApp backup, decrypt the msgstore.db.crypt15 with [wa-crypt-tools](https://github.com/ElDavoo/wa-crypt-tools) and copy the msgstore.db to the working folder. |
| 6 | + |
| 7 | +2. Run MoveToSignal in terminal for prepare the import |
| 8 | + |
| 9 | + Mac arm64 binary |
| 10 | + |
| 11 | + ```bash |
| 12 | + cd path/to/working/folder/ |
| 13 | + |
| 14 | + path/to/MoveToSignal/move_to_signal_Darwin_arm64 \ |
| 15 | + --command=ImportWhatsAppDb \ |
| 16 | + --signalBackup=./signal-YYYY-MM-DD-HH-mm-ss.backup \ |
| 17 | + --signalBackupKey=123451234512345123451234512345 \ |
| 18 | + --signalPhoneNumber=+49123456789 \ |
| 19 | + --whatsAppDb="path/to/msgstore.db" \ |
| 20 | + --whatsAppExports=. \ |
| 21 | + --whatsAppMode=Prepare \ |
| 22 | + --verbose |
| 23 | + ``` |
| 24 | + |
| 25 | + From source |
| 26 | + |
| 27 | + ```bash |
| 28 | + cd path/to/working/folder/ |
| 29 | + |
| 30 | + dart run path/to/MoveToSignal/bin/move_to_signal.dart \ |
| 31 | + --command=ImportWhatsAppDb \ |
| 32 | + --signalBackup=./signal-YYYY-MM-DD-HH-mm-ss.backup \ |
| 33 | + --signalBackupKey=123451234512345123451234512345 \ |
| 34 | + --signalPhoneNumber=+49123456789 \ |
| 35 | + --whatsAppDb="path/to/msgstore.db" \ |
| 36 | + --whatsAppExports=. \ |
| 37 | + --whatsAppMode=Prepare \ |
| 38 | + --verbose |
| 39 | + ``` |
| 40 | + |
| 41 | + A new folder named WhatsAppExportsFolder will be created for the export files. |
| 42 | + WhatsApp exports will be named eg: +4912345678-(Screen name if found).txt |
| 43 | + |
| 44 | +3. Rename exports |
| 45 | + |
| 46 | + Please review the all .txt files and make sure to file names start with the contact phone number the user uses with Signal. |
| 47 | + At this point you can also merge files into one, if a user had multiple WhatsApp identities. |
| 48 | + Please delete all files you don't want to import. |
| 49 | + |
| 50 | + All WhatsApp export files must be renamed like: |
| 51 | + contactPhoneNumber-Screen Name.txt |
| 52 | + |
| 53 | + eg: +49123456789-Max ExampleName.txt |
| 54 | + |
| 55 | + Only the phone number important for WhatsApp DB imports. |
| 56 | + The phone number needs to in international format starting with + and must only contain numbers. |
| 57 | + |
| 58 | +4. Run MoveToSignal in terminal to import the prepared messages |
| 59 | + |
| 60 | + Mac arm64 binary |
| 61 | + |
| 62 | + ```bash |
| 63 | + cd path/to/working/folder/ |
| 64 | + |
| 65 | + path/to/MoveToSignal/move_to_signal_Darwin_arm64 \ |
| 66 | + --command=ImportWhatsAppDb \ |
| 67 | + --signalBackup=./signal-YYYY-MM-DD-HH-mm-ss.backup \ |
| 68 | + --signalBackupKey=123451234512345123451234512345 \ |
| 69 | + --signalPhoneNumber=+49123456789 \ |
| 70 | + --whatsAppExports=. \ |
| 71 | + --whatsAppMode=Import \ |
| 72 | + --verbose |
| 73 | + ``` |
| 74 | + |
| 75 | + From source |
| 76 | + |
| 77 | + ```bash |
| 78 | + cd path/to/working/folder/ |
| 79 | + |
| 80 | + dart run path/to/MoveToSignal/bin/move_to_signal.dart \ |
| 81 | + --command=ImportWhatsAppDb \ |
| 82 | + --signalBackup=./signal-YYYY-MM-DD-HH-mm-ss.backup \ |
| 83 | + --signalBackupKey=123451234512345123451234512345 \ |
| 84 | + --signalPhoneNumber=+49123456789 \ |
| 85 | + --whatsAppExports=. \ |
| 86 | + --whatsAppMode=Import \ |
| 87 | + --verbose |
| 88 | + ``` |
| 89 | + |
| 90 | + Once done, a new Signal backup file is created, like: signal-signal-YYYY-MM-DD-HH-mm-ss.backup (new timestamp) |
| 91 | + |
| 92 | +5. Follow the "After importing all messages" steps from [Signal](docs/Signal.md) |
0 commit comments