rustic icon indicating copy to clipboard operation
rustic copied to clipboard

Parsing restore output to get progress

Open paladincorners opened this issue 7 months ago • 1 comments

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?

paladincorners avatar Mar 24 '25 14:03 paladincorners