バックアップ対象はサイト設定のみ

I would like to know the possibility of backing up Only Site Settings, just as opposite of what was asked here

The purpose is to replicate forums for different clients. If I can replicate settings, its easy to proceed with different categories, topics & users.

Please advise.

PS: I couldn’t understand by reading this

「いいね!」 2

I think @zogstrip suggested entering the forum database you want to replicate (via SSH), clone the site_settings table into that database and replace that particular table in each new site you’re going to create.

「いいね!」 4

I believe @techapj has expressed interest in this feature but we do not have it yet.

「いいね!」 7

Alright.

So, I need to install Discourse as usual and take this step to replicate the settings. Will the instance version different make any conflicts here?

If we have to get the forum logo to new one, we will have to re-upload this, I suppose. Am I right?

Save https://yoursite/admin/site_settings.json. Use GitHub - pfaffman/discourse-settings-uploader: Install a Discourse settings JSON file to a site to upload them.

To install these settings to another site

Do this:

./discourse-settings-uploader HOSTURL API_KEY API_USER SETTINGS_FILE

For example:

./discourse-settings-uploader https://discourse.example.com d35989078a system site_settings.json

One caveat: It uploads only settings that are marked as changed. This means that if there’s some setting that’s changed on the site you’ve uploaded that you want to restore to default with the script it won’t work. The solution is to edit the JSON file so that the default value there doesn’t match the value you want to set.

Now what’s needed is a way to easily download all themes and then upload them. Uploading
a set of files shouldn’t be hard to do. Downloading themes by hand could be tedious, so some automated way to get all of them would be nice.

「いいね!」 16

This sounds good. Will try this method next time I create a new forum.

I hope Discourse version difference will not make any issue, however I do update forums on regular basis… :slight_smile:

「いいね!」 1

As long as the setting is available it will be set. Settings that don’t exists can’t get set, but make only that it doesn’t get set. For example, if you have a plugin installed on the system your are copying from its settings exist only if the target system has the plugin as well. When that happens an error is presented for each unavailable setting.

「いいね!」 4

ああ、これはまさに命綱となる機能ですね。

「いいね!」 1

こちらをご覧ください: Administrative Bulk Operations

「いいね!」 6

もし現在の設定をファイルとしてエクスポート/バックアップし、新しいフォーラムサイトがそのファイルをインポートして同じ設定を適用できるようにすれば、それは本当に素晴らしいと思います。どなたか対応していただけないでしょうか?これは、サイトのデータと設定の完全なクローンを作成したい場合に非常に便利な機能です。

現在のフォーラムの完全なクローン(ユーザーデータ、トピック、投稿、画像など)に加え、Discourse の管理設定やプラグイン設定も現在のまま移行したい場合、どのような選択肢がありますか?どなたかご指南ください。@pfaffman

現在保存できるのは app.yml ファイルと shared という名前のフォルダを含む discourse フォルダのみです。この shared フォルダにはデータベースやユーザーがアップロードしたファイルがすべて含まれていると考えてよろしいでしょうか?

「いいね!」 2

上記で2つの方法が説明されています。

新しいフォーラムを作成し、現在のフォーラムをバックアップしてください。そのバックアップを新しいフォーラムに復元します。両方のフォーラムが同じ S3 バケットをバックアップ用に使用している場合、いくつかの手順を省略できます。

「いいね!」 1

素早いご返信ありがとうございます。

新しいフォーラムを作成する。現在のフォーラムをバックアップする。そのバックアップを新しいフォーラムに復元する。両方のフォーラムが同じ S3 バケットをバックアップに使用している場合、いくつかの手順を省略できます。

なぜ手動でのサイト設定のみのバックアップが必要なのでしょうか?上記の方法ですでに、すべてのプラグイン設定、サイト設定、画像、アップロード、データベース、投稿、トピックなどがバックアップされるはずです。

この 3 つのステップに従えば、サイトのエクスポートは、サイトおよびプラグインの設定に加え、データベースとファイルのアップロードの完全なバックアップを提供してくれますか?

  1. 新しいフォーラムを作成する。
  2. 現在のフォーラムをバックアップする(管理 UI ダッシュボードからバックアップセクションへ移動し、コマンドラインではなく、こちらで行います)。
  3. ステップ 2 で取得した新しいバックアップを、ステップ 1 で作成した新しいフォーラムに復元し、挿入する。
  4. 実は、バックアップ用のバケットはまだ持っていません。私のフォーラムは単に DO のドロレット上にホストされており、サーバー内の var/discourse/shared フォルダに置かれているだけです。しかし、Discourse のドッカー yml ファイルが /www/discourse にある理由がわかりません。なぜすべての Discourse ファイルが、異なるパスにあるこれら 2 つのフォルダに分散されているのか理解できません。

ご確認をお願いします。

このトピックは2335日後に自動的に閉じられました。新しい返信は許可されていません。