[HOWTO] Backup and Restore Data on Android Devices

I use TWRP on a device which is currently running Android 13 (Ljneage 4 microG, and IodéOS) and which previously ran Android 12. TWRP has / had no problems decrypting the data partition in either Android version - it works just fine

I believe that whether or not it works depends on device, Android version, and TWRP version. Only way to find out us to try it on your device

1 Like

I totally agree with that :+1:
For some devices, OrangeFox Recovery may work.

https://twrp.me/site/update/2022/10/10/3.7.0-released.html

Android 12.1 Branch

  • Android 12 Encryption Support
    

This is only in the Android 12 branch of TWRP

In which TWRP branch is your device?

<Ooohps - the link doesn’t work, goes into a 404.>
The older one, I mean.^^

The programmer has changed the name of his project to Open Android Backup. It can be found here: https://www.openandroidbackup.me/

2 Likes

Yes that’s what I’m finding. Running Android 12 with /e on Motorola G7. I get the familiar error with TWRP of:
ERROR: 255. Backup failed

Do you know if it’s possible to run the latest TWRP on this phone or do I have to stick to the older “river” version?

Thanks

Sorry - I don’t know anything about that device. Maybe have a look at the XDA Development forums for it

Thanks

Just installed TWRP 3.7-11 for Motorola G7 ocean on my G7 river.
Appears to run okay. Will try backup later. Hoping that decryption on data works. Will get back

Cliffhanger

Right. Having installed the above and carried out a number of tests I’m back where I started i.e .unable to backup. I have reverted to the original TWRP designed for the Motorola G7 river. I have only the single user so the problem seems decryption of data. This statement seems to sum up my dilemma:

I want to upgrade OTA and eventually move to /e T but I must backup first which is probably sensible!

Any ideas where I go to get a backup anyone?

Thanks

On my rooted device I use this module for backup
https://github.com/Magisk-Modules-Alt-Repo/data_backup
and this for restore
https://github.com/ziandzivan/data_restore_Courier

Thanks so much bege. This looks good

Two things Am I right I could use this in conjunction with TWRP i.e. backup with TWRP everything except data. Then backup up data with script and then restore first with TWRP and then with script?

Using this with a Motorola G7. What are the chances of a brick? I would think it would error out but not damage the partition?

Cliff

I am not a specialist for Android, just an advanced user. I did not restore the system with TWRP since I use these scripts. But I expect that it works as you write. These scripts work without TWRP. Data backup and restore run in the running system. Therefore I think they cannot alter or damage the partition.
I use them on a Fairphone 3.
The only drawbacks I experienced are that some apps crash after data restore with the script. But on my device I simply clear the respective app data and restore it from my regular app data backups.

Okay thanks again

Cliff

Reading this and that in this thread, I realize it is not straightforward to do a backup including media and documents, let alone e-mail. When you have a rooted phone you can use something like NeoBackup, but when you don´t, you have to save those data manually to your pc or to another drive, if they are not hidden for the user, like e-mails not from Murena.
I would like to see a built in solution on /e/OS to backup ALL your data to the Murena cloud and be able to restore it too, from the cloud to the new device. Most of the data are synced to the cloud anyway, so why isn´t it possible to get those back on a new device? I prefer not to depend on other backup-and-restore tools + manual backup. Make /e/OS easier! And isn´t /e/OS’s slogan: my data is my data?

P.S. Someone mentioned a way to download the content from the Murena cloud to the pc with Nextcloud. What to do next to send those data to the new phone?

1 Like

I very very much agree with you !

You may try to use the seedvault backup tool included in /e/OS to backup to MurenaCloud (that is recognized as a Nextcloud instance when nextcloud app is installed) some of your data and somne of your apps but in practice it is not satisfying:
-when choosing nextcloud as the backup location, it usually fails, whereas saving in a USB stick does work
-even if the backup on nextcloud was working, this seedvault backup is still very partial and missing too much data and apps (some apps deny the right to be backed-up)

So yes, a built-in backup tool to the murena cloud would be ideal (as of now I do not understand what exactly the “app parameters” option in murena cloud sync does save, it seems that it saves nothing). A full backup of the phone from the recovery would also work fine as it did with TWRP for phones without encryption.

Hi GabrielT: what’s your favourite method for now? I tried Open Android Backup, but it failed to restore to the phone. I made a Seedvault backup and that worked, but I didn´t try to restore that one. That leaves the Nandroid backup as mentioned in the first post of this thread.

(But having all the important data on the cloud, it would be wise for /e/OS developers to program a backup and restore functionality).

At the moment I use in parallel seedvault on a USB stick and a copy of the internal storage data on a PC just in case I cannot restore seedvault backup 5which is holding the internal storage as well when configured so). I set the seedvault backup to not limit the app size backup so as to save as many apps which alllows backup.
I also use the murena cloud for contacts; calendar etc , everything except pictures because the sync of picture is not removing pictures on the server when they are deleted on the phone which makes the feature unusable in practice.

1 Like

I have just migrated from Lineage 20 to e/ on a BQ Aquaris x pro… I used Swift Backup in conjunction with Shizuku, backed up to Dropbox cloud…it worked reasonably well! I. must say… Yeah, I know, I am trying to get away from using goggle, and if anyone has a better reliable solution, I am open to suggestions. :v: