推荐使用哪种命令行方法来恢复 Discourse 论坛?

似乎有三种推荐的方法——哪一种最适合 3.5GB 以上的备份?

  1. 通过 Rails 控制台

    https://meta.discourse.org/t/move-your-discourse-instance-to-a-different-server/15721/19

  2. 通过 Discourse 脚本

    https://meta.discourse.org/t/is-there-any-way-to-restore-your-site-from-backup-in-the-terminal/42377/2

  3. 通过 Discourse ./launcher

    https://meta.discourse.org/t/is-there-any-way-to-restore-your-site-from-backup-in-the-terminal/42377/9

Those two should be pretty much equivalent nowadays. I think method #2 didn’t exist yet when I wrote the post about method #1 almost 2.5 years ago.

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 :+1: