Restore server with just mirrors

I have a “readonly” server with many repos defined as mirrors, no updates are needed.
Although actual git data is less important (since it’s just a copy) I wanted to provide an easy way to restore the server into another one with all the mirrors still there.

Is there a way to restore just the database (mysql for me) without the filesystem data and have gitea re-fetch all the git data?