Command to user for a resticker container for checking the repository state

I’d like to check the repository state within my reticker docker containers. So that the container can be restarted if say, the repo is down (I’m trying to migrate and it’s nfs based…still evaluating if this is the best idea). So I sometimes get stale file handles.

So is there a command I can run from a client to check the repo state. I did try a restic cat config, but can’t tell if that will return an error if the repo can’t be access (like you’d get when running a backup to it).

Running a restic check might be a little “big”

restic cat config will read and decrypt the config file from the repository. To just check that a repository seems to exist at the path that would be enough.

A stale nfs handle should definitely cause restic cat config to fail with an error.