Yuxuan Xia
Yuxuan Xia

Reputation: 91

ADB Backup - location of the resulting file?

I used an adb command to backup a file in data/data of an Android phone. After the command ran, my phone said it was successfully backed up, but where is the backup file?

Upvotes: 8

Views: 12491

Answers (2)

royatirek
royatirek

Reputation: 2769

So if you run

 adb backup -noapk com.masimo.merlin.consumer

then backup.ab gets stored in the present working directory by default.
In unix/linux, you can know your present working directory by typing pwd and in windows you can know it by typing cd

More Info about backup

Upvotes: 1

Chandrakanth
Chandrakanth

Reputation: 3831

If you use adb backup -all command then it will create backup.ab file in the current working directory.

If you want to specify path use -f like below

adb backup -f <path_to_backup_file> -all

Upvotes: 4

Related Questions