Snapshot/Restore: Add repository validation

Adds automatic and manual verification of repository settings and access rights.

Fixes #7096 

maybe just use `Joiner.java` ie.

```Java
StringBuilder builder = new StringBuilder('[');
Joiner.on(",").appendTo(builder, failure);
return builder.append(']').toString();
```