Banckups and restore for my data in erpv6?

Hi,
Now i am using a old version frappe and erpnext.But i have a full backup of erpv4 data(.sql).Now i am want do restore in the latest version (erpv6.XX).What are the step ti fix the erp restore…

thanks

This is not guaranteed to work but you can try doing -

bench --site [sitename] --force restore /path/to/SQLFILE

followed by

bench migrate

If that doesn’t work the only way you can make it work is to restore your data into ERPNext 4 and then update that to ERPNext 6