Using windows shell script and adb to backup stuff from your Android phone
Here's some tips on how to write a shell script to backup stuff from your Android phone to a Windows machine. This should work on any version of Windows, but I've only tested it on Windows 7 and Windows 10. First, you need the Android SDK installed. The command line tools are enough, you don't need the full Android Studio. You will be using the adb.exe found within to do the transfers and removing of files on the phone. Second, you need an ADB (Android Debug Bridge) driver for your phone installed. Most phone manufacturers provide ADB drivers on their websites. Note: Seems that the ADB bridge is nowadays supported in Windows 10 and recent mobile phones without any extra drivers. I haven't had to install ADB drivers at all recently. Third, your Android phone needs to be in developer access mode . You should do a couple modifications to the script below. These include setting the ADB path variable and setting the destination folders for sound recordings and images...