This is an old revision of the document!
Create the backup
adb backup -apk -noshared -all -system -f ./my-backup.ab
Restore the backup
adb restore ./my-backup.ab