Backup and restore
Back up with adb
Section titled “Back up with adb”adb backup -apk -shared -all -f backup.abPhotos and files
Section titled “Photos and files”Copy the contents of /sdcard to your computer:
adb pull /sdcard/DCIM ./DCIMadb pull /sdcard/Documents ./DocumentsRestore
Section titled “Restore”After installing, put your files back:
adb push ./DCIM /sdcard/DCIM
