What are exit codes of restic check for the following errors?

I wanted to apply the basic repair commands automatically using bash script. But I needed to isolate two events mention in the wiki.

  1. Ciphertext verification failed
  2. Detects damaged pack files
1 Like

Only these ones I think
https://restic.readthedocs.io/en/latest/075_scripting.html#exit-codes

1 Like

Thanks for the reply. Yes, I check that link too but didn’t find those codes. However, I excluded Ciphertext verification failed by substring check but excluding with codes would have been reliable and easier.

1 Like

May I ask why you’re automating this? Those errors should be exceedingly rare. If they are a regular occurrence then the underlying cause must be investigated.

1 Like

I wanted to take care the known problems by the system and rest will be reported to me through email. Yes, I read that those are rare but could happen any point of time to anyone.

1 Like