Open ceremcem opened 1 year ago
In case you have not found the answer, mbuffer is what is creating the progress text and it writes it to stderr (fd 2)
launching the backup with the following command should do the trick :
btrbk -c conf.calculated --progress -v run 2>&1 | tee mylog.txt
Can you get the lines with 2>&1 | tee ...
:
summary: 18.8 MiByte in 0.4sec - average of 51.9 MiB/s
Because I'm using exact same command btrbk -c conf.calculated --progress -v run 2>&1 | tee mylog.txt
and it doesn't log those summary
lines.
I try to capture all logs in order to parse later to get statistics, like so:
However, the transfer size information is not present in the
mylog.txt
. How can I redirect thesummary: 50.7 MiByte in 4.0sec - average of 12.6 MiB/s
line into the log file?