Is there an option that has restic print the summary information at the end of a backup without printing the progress information?
Please show an example of the output you don’t want to see.
I’d just like to see this at completion
using parent snapshot 0dde4408 Files: 201467 new, 0 changed, 0 unmodified Dirs: 15893 new, 0 changed, 0 unmodified Added to the repository: 0 B (0 B stored) processed 201467 files, 104.936 GiB in 12:37 snapshot 3f0e5631 saved
without any of this in the meantime
[34:04] 82.04% 141307 files 73.913 GiB, total 251709 files 90.090 GiB, 0 errors ETA 7:27 [35:14] 82.29% 149231 files 74.133 GiB, total 251709 files 90.090 GiB, 0 errors ETA 7:35 /Pictures/Photos Library.photoslibrary/resources/media/face/e3/00/facetile_e3c6.jpeg /Pictures/Photos Library.photoslibrary/resources/media/face/e3/00/facetile_e3c7.jpeg
I have a cron job where I run commands and send output to healthchecks.io, so I like to see the summary output there, but don’t need any of the progress stuff.
borg has separate options for enabling progress and printing out the summary, and I’m just interested in the summary output for this use case.
Thanks for the great software, btw.
You can pipe it through
cat -, so e.g.
restic backup foo | cat -. There’s no specific option for that reporting AFAIK.
Clever solution. Didn’t know
cat worked that way. Seems like it does what I want. Thanks!
All credit for that solution goes to @MichaelEischer
One downside to this approach is that the exit code gets swallowed up. I can work around it, but it would be nice to have it as cli flag. Is that something you would consider adding? I just did a quick test and early returning on
TextProgress.Update does seem to work. I have looked at the code base for a total of 15 minutes, so I fully recognize that there may be other undesirable implications to that .
This is the change I made for reference