I want to write a daemon-script for my Raspberry Pi 2 that runs on startup and permanently watches for changes in a specific directory. If there is a change, it should copy the changed files to a directory on a Windows computer (maybe via SSH).
I found out that the Gamin library for Python that monitors files can help (https://people.gnome.org/~veillard/gamin/python.html), but I am not sure if a bash script would be better suited for the job, especially the file transfer. Unfortunately I just started digging into Unix and Python and could use some any helpful advice on what would be the best way to solve this problem.