ADB Backup - location of the resulting file?

Viewed 6727

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?

2 Answers

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

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

Related