Nur Site-Einstellungen sichern

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 „Gefällt mir“

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 „Gefällt mir“

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

7 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

Oh this would be such a life saver feature.

1 „Gefällt mir“

See here: Administrative Bulk Operations

6 „Gefällt mir“

Es wäre super toll, wenn ihr eine Option hinzufügen würdet, um die aktuellen Site-Einstellungen in eine Datei zu exportieren/zu sichern, und dann zu ermöglichen, dass eine neue Foren-Site diese Datei importiert und dieselben Site-Einstellungen übernimmt. Kann das jemand bitte umsetzen? Das wäre eine sehr coole Funktion, falls ich eine vollständige Kopie der Daten und Einstellungen meiner Site haben möchte.

Welche Möglichkeiten habe ich, wenn ich eine vollständige Kopie meines aktuellen Forums, der Benutzerdaten, Themen, Beiträge, Bilder usw. sowie der Discourse-Admin- und Plugin-Einstellungen in der von mir konfigurierten Weise erstellen möchte? Kann mich jemand bitte beraten? @pfaffman

Aktuell kann ich nur meine app.yml-Dateien und den Discourse-Ordner speichern, der einen Ordner namens „shared

2 „Gefällt mir“

Zwei Möglichkeiten dafür werden oben beschrieben.

Erstelle ein neues Forum. Sichere dein aktuelles Forum. Stelle dieses Backup auf dem neuen Forum wieder her. Du kannst einige Schritte sparen, wenn beide Foren denselben S3-Bucket für Backups verwenden.

1 „Gefällt mir“

Danke für die schnelle Antwort,

Erstelle ein neues Forum. Siche dein aktuelles Forum. Stelle dieses Backup im neuen Forum wieder her. Du kannst einige Schritte sparen, wenn beide Foren denselben S3-Bucket für Backups verwenden.

Warum muss ich manuell nur die Site-Einstellungen sichern, wenn die oben genannte Methode bereits alle Plugin-Einstellungen, Site-Einstellungen, Bilder/Uploads, Datenbank, Beiträge, Themen usw. sichert?

Wenn ich diese drei Schritte befolge, liefert mein Site-Export dann ein vollständiges Backup der Site-/Plugin-Einstellungen sowie der Datenbank und der Datei-Uploads?

  1. Ein neues Forum erstellen.
  2. Das aktuelle Forum sichern, indem du im Admin-UI-Dashboard zum Backup-Bereich gehst (nicht in der Befehlszeile, oder?)
  3. Dieses neue Backup, das ich in Schritt 2 erhalten habe, wiederherstellen und in das neue Forum einfügen, das ich in Schritt 1 erstellt habe.
  4. Nun, ich habe noch keine Buckets für Backups. Mein Forum wird einfach auf einem DO-Droplet gehostet und befindet sich nur in einem Verzeichnis auf meinem Server innerhalb des Ordners var/discourse/shared. Aber ich verstehe nicht, warum meine Discourse-Docker-Datei yml in /www/discourse liegt. Ich verstehe nicht, warum alle Discourse-Dateien in diesen beiden Ordnern verteilt sind, die sich auf einem anderen Pfad befinden.

Bitte bestätige dies.

Dieses Thema wurde nach 2335 Tagen automatisch geschlossen. Neue Antworten sind nicht mehr erlaubt.