Restore to New Host

You can try

discourse restore --pause filename

That’ll pause the restore and you can muck with the database in another terminal to fix it. Or, I think, you can just stop it before it does that check.