Backup Android phone
From Tech
Without root
This creates a backup.ab file with all (?) data (but is encrypted if your device is encrypted):
adb backup -apk -shared -all backup-nexus7
Alternatively, use AirDroid
Restoring Backup
Galery
After restoring the images in DCIM, you may need to remove the /sdcard/Android/data/com.google.android.gallery3d (Android 4.2.1). alensiljak notes that on older Androids, remove com.cooliris.media