How to Recover Deleted Whatsapp Database Files
Do you need to recover deleted or missing WhatsApp messages? It's certainly possible, depending on the situation.
Below, you'll learn how to recover deleted WhatsApp messages on your iPhone or Android device. We'll then teach you how to set up an advanced WhatsApp backup plan to ensure you never lose any of your WhatsApp messages again.
Understanding WhatsApp Chat Backups
In order to retrieve deleted WhatsApp messages, you must have enabled Chat Backup in the app's settings. To reach this, tap the Settings tab on the bottom bar of the iPhone app, or on Android, open the three-dot menu at the top-right and choose Settings.
From there, head to Chats > Chat backup. Here (under Auto Backup on iOS and Back up to Google Drive on Android), WhatsApp offers several backup frequencies:
- Daily
- Weekly
- Monthly
- Off
On Android, WhatsApp makes a local backup every night, but this won't help you if you lose your phone. This is why cloud backups are vital.
WhatsApp deletes older backup files as you create new ones. The iPhone app only keeps the latest backup file, while the Android version keeps "up to the last seven days' worth" of backup files. Keep that in mind as you choose the right backup frequency for your needs.
By having daily auto-backups, you'll be able to easily recover WhatsApp messages soon after deleting them. On the other hand, weekly auto-backups will allow you to go further back in time to recover deleted WhatsApp messages, at the expense of losing recent chat messages.
For a more advanced backup plan for Android devices, scroll down to the "An Advanced WhatsApp Backup Strategy for Android" section below.
How to Recover Archived Chats in WhatsApp
Before we look at recovering deleted WhatsApp messages, there's a chance that you might have just archived the chat, not deleted it. But what's the difference?
Archiving removes the chat from your list, allowing you to hide conversations that you're done with for now. You can unarchive a chat at any time to access it again, and archiving doesn't delete anything in the chat. Conversely, deleting a chat erases its contents, so they're no longer accessible to you.
On iPhone, when you archive a chat, you can immediately reverse the archival by shaking your device and choosing Undo to recover the archived chat. But even if you miss this, it's easy to retrieve archived WhatsApp chats later.
To unarchive a WhatsApp chat on iPhone:
- Scroll up in the chat list until Archived Chats appears.
- Tap on it, then swipe from right to left on the chat you want to restore.
- Hit the Unarchive button that appears.
To unarchive a chat on Android:
- Scroll to the bottom of the chat list and tap Archived chats (X).
- Press and hold on the chat you want to recover.
- Tap the unarchive icon at the top-right, which looks like a box with an upward-facing arrow.
How to Recover Deleted WhatsApp Messages
Wondering how to get back deleted WhatsApp messages after backing them up? You can restore your WhatsApp backup by simply uninstalling and reinstalling WhatsApp on your device.
When you reinstall the app, you will be prompted to restore your message history from the backup file. Tap Restore and you'll retrieve everything from the latest backup. Make sure to do it when prompted, as you can't restore the backup file later.
This method of recovering deleted WhatsApp messages works on both Android and iPhone, as long as you have a backup. Keep in mind that it you can only recover backed-up messages within your selected auto-backup frequency, however.
For instance, if you've set the app to back up daily, you can recover any deleted chats before the next daily backup occurs. But if the app has made a new backup since you deleted certain messages, they're lost for good.
Hopefully, restoring your backup file allowed you to retrieve any deleted media from your chats. If that didn't work, however, read our guide to recovering deleted photos from WhatsApp.
On Android, you can simply open a file explorer app and navigate to /WhatsApp/Media. From there, simply sift through the folders until you find the deleted photos you want to recover.
On iPhone, you should have a backup copy of images saved to your device if you have the Save to Camera Roll option enabled at Settings > Chats in WhatsApp.
Check the above guide for additional methods of media recovery.
How to Recover Older Deleted Chats in WhatsApp
Getting deleted messages back after a new WhatsApp backup has run is slightly more difficult. Your success will depend on your selected auto-backup frequency.
Note that the below strategy only works on Android devices, since the OS lets you access local backup files. If you're using an iPhone, your only other method is to restore an iPhone backup that you made before deleting the WhatsApp chats. There are third-party apps that claim to help you recover WhatsApp chats, but they aren't cheap and offer no guarantees.
Before we dive into the process, here's an overview of restoring older WhatsApp chats on Android:
- Open a file explorer app on your device.
- Navigate to /WhatsApp/Databases.
- Rename msgstore.db.crypt12 to msgstore-latest.db.crypt12.
- Rename msgstore-YYYY-MM-DD.1.db.crypt12 to msgstore.db.crypt12.
- Uninstall WhatsApp.
- If Google Drive backups are enabled, open Google Drive, slide out the left menu, tap Backups, and delete the WhatsApp backup file.
- Reinstall WhatsApp.
- When prompted, restore from the backup file.
How to Restore Older Deleted WhatsApp Chats on Android
As mentioned before, WhatsApp on Android retains several days of chat backup files. One is, of course, the latest chat backup. The others, depending on your auto-backup frequency, could be one day or many days old. In addition to the Google Drive cloud backup, WhatsApp stores these backups on your device's local storage.
Open your device's file explorer app (Files by Google is a good option if you don't have one installed), and navigate to /WhatsApp/Databases. Depending on your device, the WhatsApp folder may appear under /sdcard/, /storage/, Internal Memory, or similar.
Within that folder, you'll find the various chat backup files. The latest one is named msgstore.db.crypt12, while the others look like msgstore-YYYY-MM-DD.1.db.crypt12. As you'd expect, YYYY-MM-DD represents the year, month, and date (respectively) that the file was created.
To retrieve WhatsApp messages deleted sometime between two backups, simply do the following:
- Rename msgstore.db.crypt12 to msgstore-latest.db.crypt12. This changes the latest backup file, since you're about to give an older backup its name in order to restore it.
- Next, rename the msgstore-YYYY-MM-DD.1.db.crypt12 file that you want to restore to msgstore.db.crypt12.
After this, uninstall WhatsApp. If you've enabled Google Drive cloud backups, open the Google Drive app, slide out the left menu, and select Backups. You'll see a WhatsApp backup file with your phone number in it. Tap the three-dot Menu to the right of this and choose Delete backup to erase it.
Doing this prevents WhatsApp from using the backup file in Google Drive instead of the local file you want to restore.
Now, reinstall WhatsApp from the Play Store. During the setup process, you'll be prompted to restore from the backup file you've just tweaked—it will show as X days old instead of the most recent backup file. Confirm restoration from this file.
That's all you have to do in order to retrieve deleted WhatsApp messages from older backups. Once you've restored those messages, feel free to start using WhatsApp as normal again.
How to Export Retrieved WhatsApp Messages and Return to the Latest Backup
When you walk through the above, you'll lose any messages created since the backup you restored. If you only performed that process to restore a few deleted messages, and don't want to lose recent messages, you can export the retrieved chat messages and then restore WhatsApp to the latest backup. You'll have to run through the entire process again, but it's not difficult.
To export messages, open the chat containing the messages you want to save. Tap the three-dot Menu button at the top-right, followed by More > Export chat. If the chat has media, you'll see an option to export Without media or to Include media.
Including media will add all recent images as attachments, which obviously increases the size of the export file. You can export up to 10,000 messages with media, or 40,000 messages without media.
After you make your choice, choose an app on your phone to share the text file (and attachments, if applicable) containing your messages. You can email this to yourself, add it to cloud storage, or similar. Repeat this for any other chats with messages you want to save.
Once you're done exporting, follow the steps in the above section again. When you come to renaming the backup files, reverse the process:
- Rename the existing msgstore.db.crypt12 (which contains the messages you retrieved) to msgstore-YYYY-MM-DD.1.db.crypt12, using today's date. In case there's already a file with today's date, use DD.2 instead.
- Next, rename msgstore-latest.db.crypt12 (the latest backup created when you started) back to msgstore.db.crypt12.
Uninstall WhatsApp, delete your Google Drive backup again if needed, and reinstall the app. After you restore from backup, your latest chats will reappear. The messages you exported won't appear inside WhatsApp, but you can at least see them in the text file whenever you need.
An Advanced WhatsApp Backup Strategy for Android
Because you can easily view and edit WhatsApp chat backup files on Android, it's easy to manipulate them if you like. Renaming them allows you to keep as many backup files as you want.
All you need to do is rename a backup in the msgstore-YYYY-MM-DD.1.db.crypt12 format to something else, such as oct11.db.crypt12 or 2021-June-Backup. Because this file doesn't use WhatsApp's naming convention, it's now protected from WhatsApp overwriting it.
Consider creating your own backup file in this way once every month or so. That way, you won't lose tons of messages if you have to restore from an older backup. For even more safety, you should copy these backup files to cloud storage or your computer so that they're safe in case your phone stops working.
Recover WhatsApp Messages to Preserve Memories
As you can see, it's fairly easy to recover deleted WhatsApp messages. However, this is only the case if you've backed up your messages ahead of time. This is why the advanced backup strategy is worth setting up if you're an Android user. iPhone owners don't have as many options.
Now that you know you won't lose any WhatsApp messages in the future, it's a good idea to discover some of WhatsApp's other cool features that aren't immediately visible.
15 Hidden WhatsApp Tricks You Need to Try Right Now
You might think you know everything about WhatsApp. However, like anything tech-related, there are always more tricks, tips, and features to learn about and use.
Read Next
About The Author
Ben Stegner (1789 Articles Published)
Ben is the Editor in Chief at MakeUseOf. He left his IT job to write full-time in 2016 and has never looked back. He's been covering tech tutorials, video game recommendations, and more as a professional writer for over seven years.
More From Ben Stegner
How to Recover Deleted Whatsapp Database Files
Source: https://www.makeuseof.com/tag/accidentally-deleted-whatsapp-chat-history-heres-get-back/
0 Response to "How to Recover Deleted Whatsapp Database Files"
Post a Comment