I tried various levels of verbosity (1-4) but couldn’t find one that shows JUST added/deleted/modified files - it seems 3 and 4 both show all skipped files too?
Is there a way to show just added / deleted / modified files? OR is there a way to automatically do a restic “diff” between the last two snapshots and pipe that out to a text file? Either one would work.
Oh, sorry, I wasn’t clear. I meant I tried -v -vv -vvv and -vvvv with “restic backup” in the script with >backup.log at the end. I was hoping for a level that would only show what’s changed, omitting skipped files.
Separately, I was wondering if there was a way to do “restic diff” and automatically compare the last two snapshots without specifying their IDs (or a way to programmatically grab them in order to specify them, perhaps from a “restic snapshots” listing).
Either option would get me what I’m wanting - just a list of added/modified/deleted files, which I could then email myself after a script execution.
Sure, that’s what --json is for. Assuming the hostname is foobar and all snapshots have the same paths, something like this will work on Linux where command substitution and jq are available:
I too need to compare the latest to the previous one with different paths and even more with a single snapshot have multiple sources on windows
The diff command helps to create a very nice report to show what changes have happened. I think it can be enhanced a lot more for reporting and logging results.
–host
–group-by-path
Combination of the above 2 (would help me😊)
–group-by-host
Find missed dates (dates on which backups did not run from a host or path)
I can raise a issue on github if the enhancement is worth.
has anyone worked on the restic diff append log within termux? i see here on linux nztim had >> ${LOG} 2>&1 functioning. i’ve tried every combination i can think of: >> ${LOG} 2>&1 &>> ${LOG} 2>&1 &> ${LOG} 2>&1 >& $LOG} 2>&1
either they don’t append an existing log or they simply overwrite the entire log with a new log file.
Thanks,
R