Snapshot/Restore: Add repository validation

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

I think I am ok with this going into 1.4.0 so you need to move this to 1.4.0 too no?