My question on askubuntu.com didn’t bring a solution, so I have decided to make a script to check for new files for me. Since I didn’t want to use solution on server side (which I didn’t have access to), because the maintaining would be more difficult, I have chosen to write a client script in Python for it.
The script works flawlessly now, using TinyDB to store differences between locally saved state and current state of files on server. You just need to have your public SSH key on server and correctly configure the script in
configuration.ini file. The scripts connect to server and it will do everything by itself.
It was running on Raspberry Pi 2 and probably would run on an original Pi too, I just bought this one, since it was just released and after I bought it I didn’t have to run it on my machine again. Just one Cron entry on Raspbian and that was it.
If you run into any problems, logging is used and you can look in file
last-log.log for any issues.
The script can be downloaded on my GitHub: https://github.com/honza-kasik/check-for-files.