Stop deleting each repository on restore
For full-restores the entire storage is deleted all at once via RemoveAll
, and again for each repository (for partial restores). RemoveAll
is handled in #5357 (closed)
For both full and partial restores delete each repository being restored, before recreating it as part of the restore. This means that all repository data needs to be transmitted to gitaly, even if it is identical to what already existed.
Instead, we should try and reset the refs to the latest backup ref list in the backup. If that works, the restore is complete. Otherwise, continue with normal bundle applying logic.
Edited by James Fargher