adb backup question - G3 Q&A, Help & Troubleshooting

when i try to do a backup up with adb everything goes accordingly so but when i go to where the backup is suppose to be saved it's not there on my phone it says it was backed up but no file on my computer. here is the command i'm using adb backup -all -apk -system C:\Rob I've also tried adb backup -all c:\ and a few others my phone always says it was backed up but the file is never there any help would be greatly appreciated
thanks rob

Related

[Q] adb restore doesn't restore everything

Hey,
I've created a backup with this command:
Code:
./adb backup -f fullbackup_2013-03-28.ab -apk -shared -all -system
The resulting file was 11 GB which was expected. After this I unlocked my bootloader. Restoring the backup hung two times. FIrst at com.android.chrome then at com.google.android.googlequicksearchbox. These two were also mentioned in Android issue report #34311 (sorry can't post link, I'm under 10 posts). Both times I rebooted my phone and restarted the restore. The third restore went through.
Now my problem is I'm missing a lot of data. My storage is only at 6 GB, that's at least 5 GB missing. My music folder for example was only partially restored. How can this be? Is there anything I can do?
I'm running 4.2.2 stock. My adb version is 1.0.31.
Update: I've now extracted the backup and I can say for sure that there are files in there that don't get restored.
Has nobody else experienced such a behavior?
AW: [Q] adb restore doesn't restore everything
yes i have done that with my nexus 7.. it seemed to restored my file structure but when i tried to open files nothing would happen... u really cant rely on that thing
Sent from my Galaxy Nexus using xda app-developers app
It's safer to use adb pull and adb push to backup and restore the sdcard, and only use adb backup for user apps and data. Also, it's not generally a good idea to backup and restore system apps and data. So -noshared and -nosystem for adb backup, and pull and push for the sdcard might work better. As for the data you already backed up, maybe Titanium Backup would help. I understand it can access adb .ab files, though I haven't used it for that myself.

[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

internal storage on pc issue

Ok. I have a dilemma. My phones charging port is going bad, so I tried to fix it myself but screwed up the lcd. Now phone wont show anything on screen except green lines and touchscreen is not responsive. Most repair stores say they can't fix HTC phones OR they are too expensive to even be worth it to fix. I'm going to by a new one.
I need to backup my internal storage but I'm on Marshmallow Sense, which means I have to set the phone to file storage or transfer in the notification tray because it is defaulted to charge only when plugged into PC (thanks Google for adding that feature), I liked it when it showed my files on PC right when I plugged it in..
Since I can't see anything on my screen and it's unresponsive, I can't change it file transfer.
Is there any other way to set it to file transfer? Maybe ADB or any other way to back up internal storage?
MsEvyLynch said:
Ok. I have a dilemma. My phones charging port is going bad, so I tried to fix it myself but screwed up the lcd. Now phone wont show anything on screen except green lines and touchscreen is not responsive. Most repair stores say they can't fix HTC phones OR they are too expensive to even be worth it to fix. I'm going to by a new one.
I need to backup my internal storage but I'm on Marshmallow Sense, which means I have to set the phone to file storage or transfer in the notification tray because it is defaulted to charge only when plugged into PC (thanks Google for adding that feature), I liked it when it showed my files on PC right when I plugged it in..
Since I can't see anything on my screen and it's unresponsive, I can't change it file transfer.
Is there any other way to set it to file transfer? Maybe ADB or any other way to back up internal storage?
Click to expand...
Click to collapse
Yes, you can use ADB.
To backup, use the command adb backup -apk -shared -all -f C:\Users\NAME\backup.ab to backup. Replace "NAME" with your Windows username.
To restore, use the command adb restore C:\Users\NAME\backup.ab replacing "NAME" again, of course.
This will backup and restore all of your app data.
xunholyx said:
Yes, you can use ADB.
To backup, use the command adb backup -apk -shared -all -f C:\Users\NAME\backup.ab to backup. Replace "NAME" with your Windows username.
To restore, use the command adb restore C:\Users\NAME\backup.ab replacing "NAME" again, of course.
This will backup and restore all of your app data.
Click to expand...
Click to collapse
The command you typed, what is it backing up? Is it individual files or can I back up the whole internal sd as one.
You have TWRP ? Try this
Adb reboot recovery
It shows as default all memory when booted in there. At least here it does
MsEvyLynch said:
The command you typed, what is it backing up? Is it individual files or can I back up the whole internal sd as one.
Click to expand...
Click to collapse
It will backup all of your apps and app data.

Way to backup and restore from PC (no root)?

At the moment I dont' want to unlock,root the phone and install TWRP because I'm fine with stock Rom, but there's a way to backup to pc and restore from pc as we can with TWRP recovery?
Thanks
failax said:
At the moment I dont' want to unlock,root the phone and install TWRP because I'm fine with stock Rom, but there's a way to backup to pc and restore from pc as we can with TWRP recovery?
Thanks
Click to expand...
Click to collapse
ADB Backup
https://9to5google.com/2017/11/04/how-to-backup-restore-android-device-data-android-basics/
Google search link with 1.590.000 hits
My command line is:
Code:
adb backup -apk -shared -all -system -f C:/user/Pixel2XL/adb_backup/mmddyy.ab
This backs up all user apps and data, all system apps and data, and shared storage (internal SD card)
Pkt_Lnt said:
ADB Backup
https://9to5google.com/2017/11/04/how-to-backup-restore-android-device-data-android-basics/
Google search link with 1.590.000 hits
My command line is:
Code:
adb backup -apk -shared -all -system -f C:/user/Pixel2XL/adb_backup/mmddyy.ab
This backs up all user apps and data, all system apps and data, and shared storage (internal SD card)
Click to expand...
Click to collapse
Actually, you might want to include
Code:
-obb -keyvalue
*if you want to backup your games and any "apps that perform key/value backups"
What a great idea @Pkt_Lnt! I wish I realized this when I was planning to root and wanted to backup as best I could...
I'm purely just wondering, why include "-apk -shared" & "-system" when you have an option of "-all"? And isn't including "-f" meant to backup a specific file?
P.S. nevermind (on the -all & -system), after reading the help on the command, -all doesn't cover system apps...
Also, in terms of restoring.... would this method depend on root access for full restoration? does this method even backup settings and "personalizations" without root access (at least when backing up)?
simplepinoi177 said:
Actually, you might want to include
Code:
-obb -keyvalue
*if you want to backup your games and any "apps that perform key/value backups"
What a great idea @Pkt_Lnt! I wish I realized this when I was planning to root and wanted to backup as best I could...
I'm purely just wondering, why include "-apk -shared" & "-system" when you have an option of "-all"? And isn't including "-f" meant to backup a specific file?
P.S. nevermind (on the -all & -system), after reading the help on the command, -all doesn't cover system apps...
Also, in terms of restoring.... would this method depend on root access for full restoration? does this method even backup settings and "personalizations" without root access (at least when backing up)?
Click to expand...
Click to collapse
1 - I was trying to teach the poster above to fish, not trying to do the fishing for him. That said, I'm not a gamer, that "-obb" is not relevant to me.
2 - backup -f file Write an archive of the device's data to file.
This Reference
I do not see your "-keyvalue" in that ADB Command Reference doc, you might want to verify that before using it.
This is my actual command line from today. I'm on Linux, so I tried to make this easier for the Win crowd, knowing the tilde_backslash_path would throw 99% of those who might read this for a loop!
Code:
[email protected] ~ $ adb backup -apk -shared -all -system -f ~/Pixel2XL_adb_backup/backup05172018.ab
3 - ADB commands to not require root. Restore has always worked for me, and as you might guess, I have many "adb grant permissions" in use. :good:
For the rest of your questions, sorry I don't have time to do that research for you. All I use is the This Reference above, if that does not provide what you are asking, try this.
Pkt_Lnt said:
1 - I was trying to teach the poster above to fish, not trying to do the fishing for him. That said, I'm not a gamer, that "-obb" is not relevant to me.
2 - backup -f file Write an archive of the device's data to file.
This Reference
I do not see your "-keyvalue" in that ADB Command Reference doc, you might want to verify that before using it.
This is my actual command line from today. I'm on Linux, so I tried to make this easier for the Win crowd, knowing the tilde_backslash_path would throw 99% of those who might read this for a loop!
Code:
[email protected] ~ $ adb backup -apk -shared -all -system -f ~/Pixel2XL_adb_backup/backup05172018.ab
3 - ADB commands to not require root. Restore has always worked for me, and as you might guess, I have many "adb grant permissions" in use. :good:
For the rest of your questions, sorry I don't have time to do that research for you. All I use is the This Reference above, if that does not provide what you are asking, try this.
Click to expand...
Click to collapse
Cool...thanks for answering what you could...I was merely curious; I didn't mean/intend/imply that you do the research for me or anything. Yea, I know absolutely nothing about Linux and it's environment; so I/we appreciate you converting it to the "windows crowd" as well as "spelling it out" for me in the format you wrote it all out in your post. I, myself, have root and use TWRP for the backups...I was just trying to expand the knowledge...
Thanks again!

Adb backup not backing up (Nougat)

I'm trying to back up my phone with adb because rooting will have to involve wiping. I've tried backing up with
Code:
adb backup -apk -shared -all -f backup.ab
and similar commands (noapk, noshared...), but whatever I do I can't get a backup bigger than about 1.5GB. This is a problem as my whole 32GB internal memory is almost full, and it's not just files, one of my apps alone shows up as using 2.5GB storage. How do I backup the whole phone?
I'm using adb.exe from platform tools from developer.android.com, my phone is Android 7.0, software 2.41.401.41
Edit: I've managed to open up the ab file and it's almost all just system stuff (com.htc.china.location.service, why the hell would I want to back that up??), and about a dozen of my apps (only 40MB of them), and for at least one the storage is missing.

Categories

Resources