Run script for file organisation after FTP upload

3JL

Cadet
Joined
Feb 17, 2019
Messages
9
Dear all,
I have been searching around a bit, but could not really converge on a viable solution. I was hoping you could help me by giving me some directions.

What I hope to achieve is the following; when hooking my camera to my LAN, it will upload the new photos on the camera through FTP to the FreeNAS server. I would like to trigger the following after such event:
  • Moving of latest files to a new folder, based on the date of the files
  • Extracting the jpg from RAW files (I currently use exiftools, but from another machine)
  • Moving the jpgs to another folder and changing their ownership
How can I make such an FTP file upload trigger? I am familiar with incron, but that does not work on FreeNAS, right?
Exiftools should run in a jail, right?

Complete solutions are welcome of course :) but I would already be helped tremendously with a bit of direction on what to look for.

Thanks! J

(I am running the latest FreeNAS 11.3 build)
 
Top