auanasgheps/snapraid-aio-script

Add "raw" logs

firasdib opened this issue · 6 comments

I found myself unsure of what was happening during an extended snapraid sync since there is no insight into the process while it's running, unless you have the stdout pipe. I was thinking, would it be possible to add a "raw" log entry somewhere, so you can tail it to see what the current sync/scrub progress is?

Thanks

By default every run produces a verbose log in /tmp on the server, but it is overridden every time you run the script.
You can change this by using the retention days feature.

RETENTION_DAYS=0
SNAPRAID_LOG_DIR="$HOME"

I hope this answers your question!

I think what @firasdib is looking for, and please correct me if I'm wrong, is an indication of the progress of current step in the script. Essentially this:

image

I see the use for this as an analysis tool, maybe there's a way to add this line to the script logs so that it's continually overwritten as to not pollute it.

Correct. It would be nice to have this info (along with the files being synced from the diff output) in the "raw" logs. These wont be emailed to you, but they serve as history (and progress info).

Hi guys to be honest I have no idea how to implement this feature, so in case you know, contributions are welcome.