EarthScope / ringserver

Apache License 2.0
30 stars 16 forks source link

Cleaning the data directory #35

Closed MarcoEsposito890 closed 1 year ago

MarcoEsposito890 commented 2 years ago

Hello,

I have a ringserver running on a Linux machine and I'm using it as a Seedlink server. I save .mseed files in the directory using a Python script with the obspy library.

Since the stream is continuous and there is a big amount of data being saved, I'm wondering if the ringserver can be configured to clean the data directory periodically by itself or if it's better to use another Python script to do the cleaning (which I'd like to avoid).

chad-earthscope commented 1 year ago

Hi @MarcoEsposito890, ringserver does not have any capability to remove the data files. This would be very tricky as ringserver has no idea if a file is "done", and this task is much better handled by system that knows more about the data flow.