I worked for a company in the 90s where the source repository was wiped because the idiot admin tried to run a backup in the wrong place at the wrong time and nuked the repo. Or something like that -- I never really understood his excuse for what had happened.
We lost all the history, but (after they escorted the guy from the building) we were able to restart with source trees pulled off dev workstations.
No surprise that I got an email from one of the VPs of the nearly-defunct company a few years later asking if I might know the master password to the source control database. So yeah, they had a backup, but it was useless because of course it had been encrypted to prevent theft but nobody thought of recording the password somewhere secure.
We lost all the history, but (after they escorted the guy from the building) we were able to restart with source trees pulled off dev workstations.
No surprise that I got an email from one of the VPs of the nearly-defunct company a few years later asking if I might know the master password to the source control database. So yeah, they had a backup, but it was useless because of course it had been encrypted to prevent theft but nobody thought of recording the password somewhere secure.