Messed up database

Hi,

It looks like I messed up my postgres db and have to reinstall everything anew. The problem is that I didn’t had every repo checked out on my laptop. I still have the old repos in the git directory in the old gitea path. Is there a way to restore these?

Ok, it was fairly easy.

I just took those repos. For exampe: bla.git
Then I just did an git clone bla.git and I was done. Now I can push them to my newly created repos.

2 Likes

Always keep automated backups and encrypt them locally with public-key cryptography such as gnupg. Keep one copy in the cloud and a second on a reliable medium you have physical access to. This is to mitigate the possibility of loss.