I have created this shell script inspired from various SO posts and some example scripts I found long back online.
https://github.com/bkrajendra/android_backup
Script can be executed on Win/Mac/Linux and needs to have adb cli tools. Use gitbash or MobaXterm on Windows
Usage:
./backup.sh [-r remote_folder] [-l local_folder]
e.g. ./backup.sh sdcard/DCIM/Camera /f/Photo/A52
This will also resume download if gets broken in between.