Rollback upgrades

The database didn’t upgrade, it failed before the migration and I took a backup. What’s the process in that case?