SailfishX (Xperia XA2) user here.
I would like to ask, if someone has same strange behavior as me.
After buying XA2 I wanted to restore backup data from Google drive, but I have no options to restore it from GD in WhatsApp. WhatsApp tells me, that there is no Google Play installed.
After that, I’ve tried to do manual restore via this howto:
(copy whole android_storage/WhatsApp directory to XA2, rename database file and then reinstall WhatsApp app).
But after starting app, backup didn’t appear there and it shows me that recovery is not possible.
Am I doing that wrong way?
I have in my notes that one does only need the Databases and Media directories in the WhatsApp directory. You’ll also need to clear Data and give Storage permission in the Android settings.
I’ve restored WhatsApp from Android to Sailfish several times now and this works for me, but it’s fiddly at times. (What I mean is the order of clear Data and giving Storage permissions isn’t always clear to me.)
Install microg, add your Google account,install google drive and then reinstall Whatsapp. It should find the backup now. But when restoring, there seems to be a timeout or similar. At least in latest version. And at least in my case
What you mean with clear Data?
Storage permission … yeah I thought about it, but there were read permission for all, but I can change it to rwx for all for WhatsApp directory
Iirc you need to start WA once (but not complete the startup phase) to have the
$HOME/android_storage/ WhatsApp
created with correct file system rights.
Like
Well, I see in the thread now that it’s solved but I meant in Android Settings → Storage → Clear Data. Then you can try again without needing to remove and reinstall WhatsApp.
As I see in the thread, this was the fix you needed
I have never been able to restore whatsapp content. With Telegram this works fine, but WhatsApp after a system upgrade or after a reinstall has always wiped it’s crappy own backup on Google drive or whereever they store it. It does not even give us a chance to point to a backup file in a directory view.
Guys, can I restore in the inverse direction, I mean, making a backup in Whatsapp on Sailfish and then restore it in Whatsapp on Android? How can I do it?
Yes, you copy sailfish:~/android_storage/WhatsApp to android:Internal Storage/WhatsApp, then you install WhatsApp and give it storage permissions and only then you start WhatsApp.
I also have in my notes that all that is need are the WhatsApp/Databases and WhatsApp/Media subdirectories but the last time I did a SFOS to SFOS migration I copied everything and it was also ok.
Woww…looks like you’ve all shared some great tips! From my experience, ensuring the correct permissions and ownership for the WhatsApp directory is key when restoring backups. I’ve also found that sometimes skipping the full directory copy and focusing only on the Databases and Media folders can work just as well, as long as the folder structure is intact.
For the inverse direction (Sailfish to Android), the method mentioned by aerique** has worked for me too, just make sure storage permissions are granted before launching WhatsApp for the first time.
I’m still not able to recover my data. I made a backup of the entire android_storage folder before updating my phone, which got bricked. I did a factory reset, and had to install everything again. I did exactly as in every guide, several times, to no avail. The chat history is still not available. All the files in the backup should be alright. The only difference is the newer version of WhatsApp.
The only thing needed for Whatsapp to restore the chat history is the media folder. It worked for me many times. The Whatsapp media folder with contents needs to be restored ( i use rsync but tar or zip have also the options to preserve file attributes and modification time). Then the files and folders ownership shlould be checked and corrected if needed. Then install Whatsapp and it will ask to import the chats.