How show only new and changed files

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 new or modified using grep or similar.

Alternatively add the --json option to get JSON output and then pipe that through jq, e.g. 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 :slight_smile:

If you use the JSON approach, presumably you want to make it not print out plain text, to make use of the structured JSON.

2 Likes