Problem Migrate to an old ERPnext/Frappe

Hi,

After days and days trying to migrate from an old ERPnext/Frappe backup.sql version to a new ubuntu machine, where I followed the steps to manually install frappe/erpnext.
After that I tried:
bench --site [sitename] --force restore /path/to/SQLFILE
bench --site [sitename] migrate
But without success, my next step was to install version 7(frappe/erpnext) in the new ubuntu machine, version that is the production backup.

The result is the image attached.

Can somebody help? I need to do this to create a development environment to my company, but the developer who start this project changed the files core of the application.