expose endpoints to backup a running repository (and restore from a back...

...up). For now, send backups to a temp directory.


(blocked by MODE-1952)