Manual Migration without Rakefile backup task

Is there a way to manually migrate an instance?

An upgrade broke my current instance and all I’m left with is files. I can’t find the “Rakefile” used to create a backup either.

The current instance is running directly in a FreeBSD jail but due to issues like this in the past I’m migrating it to be managed by docker instead.

Does anyone know if this is even possible? I have quite a few repositories (2gbs).
Any help is greatly appreciated!