Problem with restore Discourse from backup (3.4, quite large DB)

What commit is the old site on?

There have been a couple of regressions where a commit included a migration that it should not have. My guess is that this is one of those cases.