How to automate "save images on Iphone when connected to a external hdd"?

I want to automate that my Samsung hdd automaticly copy images on it when connected, and how do i do it ? Preferable images who are new to the hdd from last time it was done.
Possible with automator or Shortcuts ?