Best way to do a full backup (and restore it)? - Xiaomi Mi A2 Lite Questions & Answers

Hi, on my previous phones I used TWRP to create full backups of my phone. My A2 lite is rooted with Magisk and I decided to keep the stock recovery to simplify OTA updates (also there is no official TWRP build available supporting encryption). The phone is already setup completely and I don't want to start all over again so formatting is not an option. Still I want to be able to create a full backup in case something goes wrong or the phone gets damaged. Is there a way to do this or do I have to continue with SD and TB backups? Thanks in advance.

nice q >>>waiting for an answer ???

I used Titanium Backup before. But now I'm using Migrate for backups.

My backup is TB and rsync of /sdcard to a server at home (automated overnight).
I never bothered getting anything else setup. I try not to brick my devices
I did have to restore a few times when I first got the phone, until I figures out how to recover from Magisk/xposed errors without factory reset.

i prefer Titanium Backup method with batch file to backup folders i need from phone memory to PC. of course i backup Titanium Backup folder too,
minimal adb&fastboot package is installed (portable) so i can perform below backup:
backup.bat
these example lines inside
adb pull /storage/emulated/0/DCIM
adb pull /storage/emulated/0/Download
adb pull /storage/emulated/0/Pictures
...

Related

root, flash, backup file moving help

Hey quick question,
so I make a backup of my system for flashing. Then I move the backup onto a folder to my computer same with my titanium backup folder. So when I wipe and flash a new rom, I have all of my files for my system backup and my titanium backup on my phone. After I restore all of my apps after flashing the new rom, can I move the backup files and leave them on the computer as well as the system backup to save space? Is there anyway that I can still restore the system if it gets stuck in a bootloop - (besides flashing a new stock one)?
basically I want to store the system backup and the titanium backup on my computer so they are safe and because they take up about 4 gb of space on my phone.
I tried to be clear but let me know if I should further explain
Thanks
I wouldn't backup system apps with titanium, because they can vary from rom to rom. As long as you properly wipe your phone before flashing, you shouldn't get bootloops(can still happen). If you get a bootloop, try pulling the battery 1st. If your phone still bootloops, you have to use download mode and ODIN to flash stock ROM.
sent from somewhere
right which I have done before. I just want to know that if my phone does get stuck somewhere (has happened before, and I had to flash a stock rom and lost everything - lost backup) Would I be able to move my system restore and titanium backup files from my computer to my phone to be able to recover?
Basically store backups on computer, then if something happens, be able to transfer them back to phone
Thanks for the help
Generally it's good to leave backups someplace where they won't get easily corrupted or lost. Since the S3 has a microsd slot, sure, keep them on your computer and move them over if necessary.
My SOP is to keep the current backup on the microsd, and store the backups on my computer. Then if I need to reflash/nandroid back, they're there, and if my microsd is corrupted I have a known good backup.
b11aze said:
right which I have done before. I just want to know that if my phone does get stuck somewhere (has happened before, and I had to flash a stock rom and lost everything - lost backup) Would I be able to move my system restore and titanium backup files from my computer to my phone to be able to recover?
Basically store backups on computer, then if something happens, be able to transfer them back to phone
Thanks for the help
Click to expand...
Click to collapse
As long as you can get into your custom recovery after anything happens, backups will work. Make sure to backup system, data, and boot. If not and you have to flash using ODIN, like starting from scratch, you may have issues such as md5 mismatches.
sent from somewhere
ok I was just looking to see if it was possible or not to transfer backups from computer to phone if the phone cant turn on ie. stuck in download mode or recovery mode.

[Q] Backing up Z1 Compact from computer?

Hey guys,
The screen on my Z1 Compact just died. Only the screen, so everything else still works - still boots up normally, still rings when I call it, still shows up on my computer drives when I connect it via USB, and can boot into fastboot. It's got CM11 and CWM on it.
My question is, is there anyway for me to perform something like a nandroid backup of my current system from my computer without having to do anything from the phone, so that when I get a new one back from warranty, I can have it exactly as it was?
Thanks!
Boot to CWM and connect to phone with adb. You can
use the builtin adb backup function (will not backup everything)
backup partitions manually like a nandroid backup with dd / tar
make a flashable zip and then do backup_rom("path for backup") (cwm specific command, this should do a nandroid backup)
run nandroid backup in adb shell (I recommend to try this first)
zxz0O0 said:
Boot to CWM and connect to phone with adb. You can
use the builtin adb backup function (will not backup everything)
backup partitions manually like a nandroid backup with dd / tar
make a flashable zip and then do backup_rom("path for backup") (cwm specific command, this should do a nandroid backup)
run nandroid backup in adb shell (I recommend to try this first)
Click to expand...
Click to collapse
Wow thanks! I managed to run nandroid backup via adb. I can't seem to find the backup files though - any idea where they would have been saved?
Check /sdcard/clockworkmod/backup or /storage/sdcard0/clockworkmod/backup

Can't restore full adb backup

Hello!
I backed up all my apps and games that I download (stock rom) with a full adb backup usins Wugfresh's toolkit. After that I flashed cataclysm rom and wanted to restore my backup.
So I run adb restore *file location.ab* and it brings up the restore menu in my device. I press *restore my data" and it starts the process, but after 2-3 minutes it closes and says Backup ended with left only about 10 apps restored. Which is far away from the 122 apps in the backup. (the backup file is 1.3 GB).
I really don't know or have any idea on what can be the problem as this the first time I use adb backup command, and the backup doesn't seem to be corrupted.
Helps would be appreciated!
Are you sure that you have the space needed for the backup ?

What is the Best Backup AND Restore Method?

Since upgrading from my Pixel, I've had the hardest time finding a reliable full system backup and restore method. Here's what I've tried so far:
TWRP backup and restore - the backup procedure works great, but I have not once been able to successfully boot back to the operating system after restoring. Usually get caught in some form of boot loop and I'm forced to wipe and start over.
ADB backup and restore - the backup command only works 50% of the time and the restore procedure hangs and fails each time I've tried.
Titanium backup and restore - great solution for apps and data, but requires more setup after the restore process than I'd prefer. Also, I can't seem to figure out how to backup directly to my Google Drive to avoid losing the backups during a wipe.
So, do you guys have any recommendations on a reliable full system backup and restore method?
Really, nothing?
PuffDaddy_d said:
Since upgrading from my Pixel, I've had the hardest time finding a reliable full system backup and restore method. Here's what I've tried so far:
TWRP backup and restore - the backup procedure works great, but I have not once been able to successfully boot back to the operating system after restoring. Usually get caught in some form of boot loop and I'm forced to wipe and start over.
ADB backup and restore - the backup command only works 50% of the time and the restore procedure hangs and fails each time I've tried.
Titanium backup and restore - great solution for apps and data, but requires more setup after the restore process than I'd prefer. Also, I can't seem to figure out how to backup directly to my Google Drive to avoid losing the backups during a wipe.
So, do you guys have any recommendations on a reliable full system backup and restore method?
Click to expand...
Click to collapse
After restoring the backup in twrp if it doesn't boot reflash what ever room the backup was on, ie. Stock, scorpion and so on. I had to reflash the stock img after I did a twrp restore and it booted back up with everything still there. Just make sure you get rid of the -w in the flash all.
I bought a USB-C drive (SanDisk 256GB Ultra Dual Drive USB Type-C FOR $53) from Amazon which connects directly to phone USB-c port. I am able to save backups from both TWRP and Titanium here and recover from it as well. One thing that I did notice like you said, when recovering from a TWRP backup, sometimes it boot loops. (It did this when trying to go back to stock from Scorpion OS). When it bootlooped, I flashed Magisk afterwards and that fixed the bootloop. Then it booted up properly. All the apps were there. I also save my Titanium backups to the USB drive and recover any apps from there (If/when needed). I keep the Titanium backup updated by running it every few days to update any apps that may have updated info. I recommend getting this drive, its fast and has a huge capacity. https://www.amazon.com/gp/product/B06XC1WGQR/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1
Eudeferrer said:
I bought a USB-C drive (SanDisk 256GB Ultra Dual Drive USB Type-C FOR $53) from Amazon which connects directly to phone USB-c port. I am able to save backups from both TWRP and Titanium here and recover from it as well. One thing that I did notice like you said, when recovering from a TWRP backup, sometimes it boot loops. (It did this when trying to go back to stock from Scorpion OS). When it bootlooped, I flashed Magisk afterwards and that fixed the bootloop. Then it booted up properly. All the apps were there. I also save my Titanium backups to the USB drive and recover any apps from there (If/when needed). I keep the Titanium backup updated by running it every few days to update any apps that may have updated info. I recommend getting this drive, its fast and has a huge capacity. https://www.amazon.com/gp/product/B06XC1WGQR/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1
Click to expand...
Click to collapse
Another reason why I miss expandable storage slots...

xiaomi mi a2 lite how to take full backup with TWRP or any other method

hello
as title is showing i want to take to take full backup with TWRP or any other method and restore whenever i want it if something happens
like
rom with data for example contains
installed apps,contacts,photos...etc
thanks
I don't have TWRP so I backup my data using Migrate.
owais16 said:
hello
as title is showing i want to take to take full backup with TWRP or any other method and restore whenever i want it if something happens
like
rom with data for example contains
installed apps,contacts,photos...etc
thanks
Click to expand...
Click to collapse
Google back-up is integrated on the phone and does a great job.
Stores app list + app data to be restored on a later date.
Sync contacts, calling lists and messages in your cloud.
Photos are getting stored in the cloud also, you just need to make sure you selected the right settings in the Photos app.
I have a paid subscription to Google for just 10 euros per month and I have 60gb of storage on their cloud, more than I need, and all the data from the phone is going there. If for some reason I change even brands, my data will migrate to the new device without any worries.
Also, with TWRP is pretty damn straight forward. Get TWRP, click back-up, select storage for the back-up and wait. You can select what partitions you want to back-up and that's it. But note that, this back-up is only for your device and that's about it. Also installing TWRP tampers with your system and may affect OTAs.
I use a combination of titanium backup and rsync for off-device backup of apps and data. Very custom. It's not complete but it's close enough for me. Takes about an hour to put everything back when I break the phone.
Because of the encryption, you can't do a 'nandroid' (raw) backup of the data partition and restore it later. You'll need some extra partitions for the encryption keys, and that's assuming there isn't an on-SoC flash chip involved.
I suspect it would be feasible to just tarball the decrypted data partition and restore that afterwards, though that would be a bit non-trivial to restore.
Complete RAW Storage Backup/Restore using TWRP & ADB
EDIT: Apologies, confirmed as per @a1291762 above that it complains about encryption after restoring the backup image, even if encryption was turned off before backing up.
You can do a raw dump of the entire storage, but the output file will be the total size of your storage (e.g. 32GB - which you could zip on your PC to save space).
You can also then restore that raw image back to the phone. I've confirmed this works with my older Redmi 2. Haven't yet confirmed the restore process on my Mi A2 Lite, but it does back up fine.
Connect phone to PC with USB and reboot to bootloader
Boot into TWRP using "fastboot boot [twrp-xxxx.img]" (e.g. "fastboot boot twrp-3.3.1-dees_troy-daisy.img")
Confirm phone is available in recovery mode using "adb devices" command (it'll show serial # and "recovery")
[To Back Up] Type in "adb pull /dev/block/mmcblk0 backup.img"
[To Restore] Type in "adb push backup.img /dev/block/mmcblk0"
Reboot to System from TWRP menu
I suggest running your CMD window (or Minimal ADB and Fastboot) as Admin to avoid write issues to that folder.
The backup image (backup.img) can be opened/extracted with 7zip, as well as some contained partition images.

Categories

Resources