Search code examples
restoregitlabbitnamirepository

Gitlab - Is possible restore repositories files without DB backups?


I'm using bitnami gitlab stack on Vmware Vsphere ESXi 5.5, I have accidently deleted ibdata1 and mysql restarted. I don't have any backup, Only i can go to last Snapshop.

I need help to know is possible restore current repositories files with copy on last snapshot files?


Solution

  • The repositories are saved in repos_path defined in gitlab.yml. You can backup the repositories, and then reinstall GitLab from scratch.

    GitLab has a import script to import existing repositories to GitLab. You can run the script, to get the projects recreated. Since you deleted the database, all existing events, comments, issues are lost!