rustic
rustic copied to clipboard
Parsing restore output to get progress
Hello,
I am trying to figure out a way to get and parse the lve output of rustic restore to get progress updates when scripting rustic from another program. It looks like the progress bar gets printed to stderr only if there is an interactive terminal open. If there is no interactive terminal and instead stderr and stdout are piped, then no progress messages are printed.
I saw the commit that implemented RUSTIC_PROGRESS_INTERVAL, but this only changes the frequency with which the progress bar is updated. Likewise --json is not yet supported for restore.
Would you have any suggestions for this?