in command backup how can i show only files new and changed? -vv show all files processed
Simply filter the output for lines starting with
grep or similar.
Alternatively add the
--json option to get JSON output and then pipe that through
restic --json -vv backup foo | jq -r 'select(.message_type=="verbose_status" and (.action=="modified" or .action=="new")) | .item'. Someone can perhaps tidy up that jq command for me a bit
If you use the JSON approach, presumably you want to make it not print out plain text, to make use of the structured JSON.