ADB/Fastboot backup - Huawei Mate 9 Questions & Answers

I'm running Carbon 3.1, which I very much like. Still, I'd like to try omnirom and perhaps RR, both of which require a wipe. How do I back up and restore my data with fastboot or adb? I don't user twrp (doesn't play well with aosp). Phone is rooted, stock emui 8 recovery. I don't want to restore system, just my apps.

the right command to backup your app and data should be this one:
backup: adb backup -apk -shared -all -f backup-file.adb
restore: adb restore backup-file.adb
info:
options are
apk – Backs up your apps.
noapk – Does not backup apps.
shared – Backs up data on the SD card.
noshared – Does not backup data on the SD card.
hope this suggestion could help
but there are several apps around there which can do that for you without connecting to a pc.
(MyPhoneExplorer; TitaniumBackup; Helium App sync; aso...)

I have titanium, but I've encountered problems on restore.
It took me several tries but
backup -apk -noshared -all -f c:\backup-file.adb
eventually worked. Hard to find the file as it appeared in something called "Virtual Store" (that is, the path provided was disregarded) but that acted like a normal folder once I found it.

Related

CRAFT_BACKUP, a script for application and data backup

I already opened a thread in "sapphire development" forum, maybe It's better to continue here, as the script works on every device.
***0.6.5***
-Full compatibility with froyo, now it backup application moved to sd (froyo way)
***0.6.4***
-Fixed some issue with froyo
***0.6.3***
-Fixed wifi broke bug
***0.6.2***
-Fixed apn restore bug
***0.6.1***
-Added possibility to restore the call history
-Both script can be launched from phone terminal without any problem.
***0.6***
-rewritten script , is now more stable
-It does backup of applications installed on sd, both "new" and "old" method.
-If there are applications on sd saved in the backup, it asks the location where to install them.
******
In the market there are good applications for android backup.
I made my own script, craft_backup, that allow to backup both applications(apk) and data, saving them in "craft_backup" folder on sdcard.
The restore script (craft_restore), allow to interactively restore this data.
The restore script is divided into phases:
1)Application reinstall( by Wes Garner) : It automatically reinstall all the application in the backup
2)Restore applications data
3)Restore system data that does not cause incompatibility issue: sms,Apn, bookmarks, wifi, user dictionary, call history.
4)fix permissions (by [email protected]).
Prerequisites:
1) Root permissions
Script installation
Download last version from this link and flash it from recovery
Script execution
Not from recovery!
To backup:
Code:
adb shell
craft_backup #You must execute this command on the new shell
To restore (in case of wipe, we have to the repeat the script install operation)
Code:
adb remount
adb shell
craft_restore #You must execute this command on the new shell
Sometimes the restore process may seems to be frozen, simply let it work
After the restore, It's possible to have some force close, no fear. If some applications doesn't work(rare), reinstall it.
Sorry for bad english!
Very nice and clean script
Thanks a lot!!
thanks!
Now I'm working on an "Craft Backup" application to publish on market!!

ADB backup incomplete

In the aim of disabling encryption on my stock Nexus 5 I had to wipe the device. To not lose my data I researched backups and I came across the ADB method. I did several updates using different commands as I was never sure if the backup completed. The command did return however (i.e. the cursor appeared on CMD).
I ran the following:
Code:
adb backup -apk -shared -all -f C:\backup\backup.ab
Code:
adb backup -apk -shared -all -nosystem -f C:\backup\backup.ab
The end result is me having 4 backup files in the 2.8GB to 2.9GB range.
After trying ADB restore on two of them, most of my applications are not restored. I can live with that, but I would prefer if there is a way to restore my whatsapp data.
To try and diagnose the problem ibought Titanium Backup Pro to use their Extract from ADB backup option. That way I could tell what applications made it through. I unpacked then repacked the .ab file to remove the encryption by following this guide. Once I put the .ab on my phone, Titanium Backup said the backup file isn't supported.
Any thoughts ? I'm working on Windows 10 but I also dual boot with Ubuntu.
Hi
Try using the <packages...> tag
http://forum.xda-developers.com/google-nexus-5/general/guide-backup-data-root-t2824790

adb backup issue

Hi, I'm trying to backup apps for a test prior to rooting.
I'm running Oxygen 10 on a OnePlus 6 and using an Ubuntu computer.
Using this :-
adb backup -f /home/richard/backup.adb -all -apk -nosystem
It runs ok, get phone screen to authorize backup which I do, backup finishes but backup file is empty.
Help much appreciated.

Temporary root without losing data for full backup using Swift Backup?

Hello.
I transitioned from my S7 to a newer one.
I want to do a full backup of apps but now possible without root. My newer one is rooted, my S7 not.
I tried very shady methods like Kingroot and Kingoroot, no success. I know they aren't recommended at all ,spyware and tons of crap.
I want to root my S7 without losing data. Is it possible?
After that, I will reflash and fix a bit my venerable S7 for nostalgic and secondary reasons. It's showing it's age but I like it.
You can backup your data without root with ADB. Download ADB tools and use these commands:
1. This will backup all your app data at the destination folder, i.e. the folder you're using to execute adb commands. adb backup -f all -all -apk -nosystem
2. This will backup all your apps at the destination folder,
Bash:
for APP in $(adb shell pm list packages -3 -f)do
adb pull $( echo ${APP} | sed "s/^package://" | sed "s/base.apk=/base.apk /").apk
done
To restore the backup open CMD in the backup folder and use these commands:
1. To install backed up apk, adb install application.apk
2. To install backed up data, adb restore application.backup
Thanks a lot!

Is there a way to copy or move an app to a cloud and save the app as a packet before or during

but all of the things I did on the app stay intact so that when I unzip/open the app, I can use the app with my most recent changes/saved content/saved data?
An app and its acompanying data are different things, they also are storend in different locations. So you have to backup app's data separately.
Of course there is a way to backup the app ( AKA APK-file ) and the related data in one go: via ADB
Code:
adb devices
adb backup -apk -shared -all -f <FULL-PATH-NAME-OF-BACKUP-FILE.ab>
Important:
adb backup can only backup apps that allow backup at all (an app has to declare allowBackup=true in it's AndroidManifest.xml or don't have such an entry at all). If it sets allowBackup=false then adb backup can not get any data on this app.
FYI:
To convert the created backup ( the archive is a TAR-file ) into a ZIP-file you may use
https://sourceforge.net/projects/android-backup-processor/files/android-backup-tookit-20221220.zip/download

Categories

Resources