cmd: bin/restic-0.12.1 -r b2:repo backup /path --tag test --json -q
When run, I see lots of progress messages and then a final summary:
[...]
{"message_type":"status","seconds_elapsed":56,"percent_done":1,"total_files":358,"files_done":358,"total_bytes":5737826781,"bytes_done":5737826781}
{"message_type":"status","seconds_elapsed":56,"percent_done":1,"total_files":358,"files_done":358,"total_bytes":5737826781,"bytes_done":5737826781}
{"message_type":"status","seconds_elapsed":56,"percent_done":1,"total_files":358,"files_done":358,"total_bytes":5737826781,"bytes_done":5737826781}
{"message_type":"summary","files_new":0,"files_changed":0,"files_unmodified":358,"dirs_new":0,"dirs_changed":0,"dirs_unmodified":892,"data_blobs":0,"tree_blobs":0,"data_added":0,"total_files_processed":358,"total_bytes_processed":5737826781,"total_duration":56.807066045,"snapshot_id":"a870afe8"}
Is there a way to suppress the status/progress messages and only output the summary at the end?
-q seems to be related, but it doesn’t work for json output.