adb backup issue

macerg

New member
Nov 14, 2019
1
0
0
Visit site
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.
 

mustang7757

Super Moderator
Moderator
Feb 6, 2017
91,586
6,171
113
Visit site
Go to one us switch app , make a back up , then go to internal storage in file manager find opbackup copy to goggle drive , if u don't and factory restore it will be lost .

I think the way you doing wrong file naming .
Can ask @Rukbat on that one .
 

Rukbat

Retired Moderator
Feb 12, 2012
44,529
26
0
Visit site
You can't run an app in the phone using adb, the best you do is a Linux shell.

Run the app and do the backup. (I'd suggest following Backing up an Android Device and backing up whatever you want. (App Backup & Restore will back up your apps to .apk files [which are just .zip files with a different extension].)

Then use adb, if you must, to pull the files you want to keep on your desktop. (Plugging the phone in should show it as a drive, and you can use your normal Ubuntu desktop to copy files from the phone to the desktop.)

(Excuse the lateness of the response - I spent the last almost 2 days building a new PC, which included 4 trips to Best Buy. [Bent pins on the CPU? And when I brought it back, they said hat was the second one today.])