I’ve added a third option to the list - and this is the one I used on a test run. (Easy enough to do but also, unlike the script, this method lets you choose which Discourse forum you want to restore to.)
Edit: I used option 3 for the actual restore, and am pleased to report it worked without any errors