Enable Developer Option on target device
adb backup -apk -shared -all -f <filepath>/backup.ab
confirm device and confirm backup of all data ( if you want you can setup a encrypted password before)
wait for execution
Enable Developer Option on target device
adb restore <filepath>/backup.ab
confirm device and confirm restore of all data ( if you have setup an encrypted password you have to confirm it)
wait for execution