Differentiate between empty and missing repos when creating a backup
This MR changes the backup creation logic so that if the repo is missing no backup is written, and if the repo is empty then write an empty refs file and no bundle.
Edited by James Fargher