Losing access to cloud storage or changing an account often confuses users when it comes to saving correspondence history. Many believe that Google Drive is the only way to save important conversations, but the messenger architecture also provides for local data storage. Understanding how the file system works allows you to regain access to messages even in conditions of complete absence of the Internet or problems with synchronization. Android, allows you to regain access to messages even in conditions of complete absence of the Internet or problems with synchronization.
In this article we will analyze in detail the creation and recovery mechanisms local backupswhich are created by default on your device every 24 hours. You will learn how to manually transfer a database from one smartphone to another using a computer or memory card, and what pitfalls you may encounter along the way. This knowledge is critical for those who want to control their data without relying on third-party cloud services.
The recovery process may seem complicated only at first glance, but in reality it comes down to the correct placement of files in the right directories. We will look at both standard procedures through the app settings, and advanced methods using a file manager. The main thing is to follow the sequence of actions and have an up-to-date database file msgstore.db.cryptXX.
The principle of local backup
Messenger WhatsApp by default, it is configured to automatically create backups directly in the internal memory of the device. Unlike cloud solutions, these files are stored encrypted in a special system folder. Every day, usually at 02:00 a.m., the application creates a new snapshot of your chats, saving it with the current date in the name.
The system stores not one, but several of the latest database versions. Typically these are copies for the last 7 days, which makes it possible to roll back to the desired period of time if today's backup was unsuccessful or data was accidentally deleted. The files have an extension .crypt14, .crypt15 or later, where the numbers indicate the version of the encryption algorithm.
โ ๏ธ Attention: Local copies take up space in the internal memory of the smartphone. If you have not cleaned out the storage for a long time, the folder with backups can weigh several gigabytes, which affects the performance of the system.
The key file for recovery is the one that does not have a date in the name and is called simply msgstore.db.cryptXX. It is this file that the application looks for during first installation to offer history recovery. The remaining files with dates serve as an archive and require renaming to activate.
Before any manipulations with database files, copy the entire WhatsApp folder to your computer. This will create a rollback point if something goes wrong.
Locating and preparing backup files
The first step in the recovery process is finding the physical location of the database files. Depending on the operating system version Android, the path to this data may differ. On modern devices with Android 11 and higher, access to system folders is limited, which requires the use of specialized file managers with extended access rights.
The standard path to the directory with backups is as follows: Internal memory/Android/media/com.whatsapp/WhatsApp/Databases. On older OS versions the path was simpler: Internal memory/WhatsApp/Databases. Inside this folder you will see a list of files with names like msgstore-2023-10-25.1.db.crypt14.
- ๐ File
msgstore.db.crypt14is the latest backup copy, ready to be restored without renaming. - ๐
Files with dates (for example,
msgstore-2023-10-24.1.db.crypt14) are archived copies for previous days. - ๐ Extension
.cryptXXindicates the encryption version; it must match the version that the installed messenger expects.
If you plan to restore data for a specific date, you need to select the appropriate file from the list. To do this, you need to rename it, removing the date from the name, so that the system recognizes it as a current database. It is better to rename the source file to msgstore.db.crypt14 in this case it is better to rename it to msgstore.db.crypt14.old or move it to another folder for safety.
Why are the files encrypted?
Encryption is necessary to protect your personal correspondence. Even if someone gains access to the database file, without a unique key stored in the system partition of the phone, it will be impossible to read the messages.
Instructions for recovery through a file manager
The most reliable way to return chats without Google's participation is to manually replace the database files. This method is universal and works on any device Android, regardless of the manufacturer or whether you have a Google account. You will need any advanced file manager, for example Total Commander, Solid Explorer or the standard "Files" from Google with access to system folders enabled.
First make sure that the messenger WhatsApp is completely removed from the device or, at a minimum, its data is cleared. If the application is installed, it may block access to folders or automatically overwrite files when launched. After uninstallation, download the installation file APK from the official website or trusted source, but do not install it yet.
Connect your smartphone to your computer via a USB cable or use the built-in file manager. Copy the desired backup file (which you previously renamed to msgstore.db.cryptXX) to the target directory. If you change your phone, first install the messenger, launch it, go to the phone number request screen, close the application and only then copy the file.
โ๏ธ Algorithm of recovery actions
After the file is in the folder Databases, install or launch the messenger. When you verify the phone number, the application will automatically detect the local copy. A "Restore" prompt will appear on the screen. Click this button and the process will begin. Do not interrupt it until you see a success message.
โ ๏ธ Attention: The encryption version of the backup file must match the version supported by the installed application. If you copy a file from a very old version of WhatsApp to a new one (or vice versa), the recovery may fail.
Transferring data between different phones
The situation when you need to transfer correspondence from an old smartphone to a new one without using the cloud occurs quite often. This could be due to upgrading to a different brand of device or running out of space on Google Drive. In this case, physically moving the folder WhatsApp is the only working solution.
First, create a complete copy of the folder WhatsApp on the old device. You can send it via Bluetooth, transfer it to your computer and then to a new phone, or use a memory card MicroSDif both devices support this format. It is important to maintain the folder structure: inside there should be a subfolder Databases with copy files.
Install the messenger on the new device, but do not complete the setup. Copy the entire folder WhatsApp from the old phone to the root of the internal memory of the new one. Make sure that the paths match: if the structure on the new phone requires placement in Android/media/..., move the files there manually.
| Action | Old phone | New phone |
|---|---|---|
| Search for files | Folder /WhatsApp/Databases | Create a similar structure |
| Copy | Copy file msgstore.db.cryptXX | Paste into the Databases folder |
| Installation | Not required | Install APK and run |
| Activation | Disconnect the Internet | Click the "Restore" button |
A critical point is to turn off the Internet on the new device before launching the application. If your smartphone is connected to Wi-Fi or a mobile network, the messenger may try to find a copy in the cloud or create a new empty database, ignoring your local file. Work in airplane mode until successful recovery.
The success of the transfer is 90% dependent on the correct placement of the msgstore.db.cryptXX file in the desired directory before the first full launch of the application on the new device.
Recovery from a specific date (Archive)
Sometimes you need to restore correspondence within yesterday, but a week or month ago. For example, if you accidentally deleted an important chat today, but yesterday it was still there. In this case, archive files with dates in the name, which are stored in the same folder, will help us. Databases.
Select the file with the desired date, for example, msgstore-2023-09-15.1.db.crypt14. Rename it to msgstore.db.crypt14. Please note that the current file msgstore.db.crypt14 (fresh copy) must first be renamed to something else, for example, add a postscript to it _currentso as not to lose your latest messages.
After renaming, follow the standard procedure: delete the application, make sure that the renamed file is in the folder, install the messenger again and click the restore button. The application will "think" that this old file is the most recent backup copy, and will expand the data for that exact date.
- ๐ You can repeat this procedure many times, returning to different dates, until you find the information you need.
- โณ Remember that archived copies are stored for only 7 days, unless you changed the settings manually.
- ๐ After restoring an old copy, all messages received between the date of the copy and the current moment will be lost.
โ ๏ธ Attention: Restoring an archived copy will overwrite the current database. All messages received after the date of the selected backup will disappear forever if you do not save them separately.
Possible errors and ways to solve them
Even if you strictly follow the instructions, unforeseen situations may arise. Most often, users are faced with the fact that the application simply does not see the backup file or gives an error when trying to decrypt. This may be due to permissions, version incompatibility, or file corruption.
If the Restore button does not appear, check the file name. It should be strictly msgstore.db.cryptXX, without unnecessary numbers or symbols. Also make sure that the file is located in the exact folder that the application is checking. On Android 11+ this is often a problem due to folder access restrictions. Android.
In case of the error โThe backup could not be restored,โ most likely the encryption version does not match. This often happens when transferring data from a very old phone to a new one with the latest version of WhatsApp. Try searching for a file with a different extension (for example, .crypt12 instead .crypt14), if there are any in the archive, or update the application to the latest version.
File manager interfaces and paths to system folders may differ depending on the firmware of your smartphone (MIUI, OneUI, ColorOS). Always check the current paths in the storage settings of your specific device.
Another common problem is lack of space. Unpacking and restoring the database requires free space that is at least twice the size of the copy file itself. Clear the cache and delete unnecessary files before starting the procedure.
What to do if the file is damaged?
If the file cannot be recovered, try copying it to your computer and back. Sometimes this will clear file system error flags. You can also try to restore the previous version of the file from a 7-day archive.
Frequently asked questions (FAQ)
Is it possible to restore WhatsApp without deleting the application?
Technically this is possible, but it is highly not recommended. The application can cache the "no backup" state. The safest thing to do is to completely remove the messenger, clear the data, place a copy file and install it again. This will ensure that the setup wizard prompts for recovery.
Where is the encryption key stored for local copies?
The encryption key is stored in a hidden system partition of your phone and is tied to your phone number and device ID. That is why you cannot simply copy the database file to someone elseโs phone with a different number and read it - the keys will not match.
How much space do local backups take?
The size depends on the number of media files in chats. Text correspondence weighs kilobytes, but if you have a lot of photos and videos, one copy can take from 500 MB to several gigabytes. It is recommended to periodically clean the Databases folder, leaving only the last 2-3 copies.
What should I do if I forgot to rename the file with the date?
If the file is called msgstore-2023-10-25.1.db.crypt14, the application will ignore it when searching for a current backup. Be sure to remove the date from the name, leaving only msgstore.db.crypt14. Also make sure that there are no other files in the folder with the name msgstore.db....
Does this method work on dual-SIM phones?
Yes, the method works identically. However, make sure you restore the copy to the phone number it was created on. Local copies are tied to a specific account within the application, and replacing numbers during recovery is impossible without resetting the keys.