Snapshot/Restore: Add repository validation

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

should we also fail if the name is empty? maybe use `String.isEmpty(name)`