I have set up a series of sensors for temperature and humidity, each connected to and saving data on its own Raspberry Pi. Since these sensors are spread around physically, I would like them all to talk to a central server that's more powerful.
Right now, the output is not going into a database but is being stored in a plain text log on each Raspberry Pi, sort of like this:
~/log/Sensor[XX]/[YYYY]/[MM]/[DD].txt
Where each sensor is in its own folder, and the files are sorted by year, month, and day.
My goal is to run an rsync --daemon on the server and have the log files continuously sync with this location via inotify + rsync. This way, I would have several Sensor[XX] folders (Sensor01, Sensor02, etc.) each with date sorted log files that I can then process into a database.
Am I heading down the right path with this thinking? Is this the way to go to continuously sync the files?
Thanks for your help.