This question already has an answer here:
I'm using a rooted Google Nexus 4 (mako) with CyanogenMod 11 and adb 1.0.32 on OS X.
I also use disk encryption.
adbd is running as root.
I'm trying to create a full backup using:
adb backup -apk -obb -shared -all -nosystem
However, regardless of the options passed to
adb backup, it asks me to enter my backup password on the phone and then exists, showing
Backup finished on the phone.
It only leaves a 549 bytes
Using the wrong or no backup password does the same but leaves a 0 bytes file.