نسخ احتياطي لإعدادات الموقع فقط

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 إعجابات

Oh this would be such a life saver feature.

إعجاب واحد (1)

See here: Administrative Bulk Operations

6 إعجابات

سيكون أمرًا رائعًا للغاية لو أضفتم خيارًا لتصدير/نسخ إعدادات الموقع الحالية إلى ملف، ثم السماح لموقع المنتدى الجديد باستيراد هذا الملف وتطبيق نفس الإعدادات. هل يمكن لأحد تنفيذ ذلك من فضلك؟ إنها ميزة رائعة في حال أردت الحصول على نسخة طبق الأصل من بيانات موقعي وإعداداته.

ما هي الخيارات المتاحة لدي إذا أردت إنشاء نسخة طبق الأصل من منتداي الحالي، بما في ذلك بيانات المستخدمين والمواضيع والمنشورات والصور، بالإضافة إلى إعدادات مشرف Discourse والإضافات كما قمت بتكوينها؟ هل يمكن لأحد توجيهي من فضلك؟ @pfaffman

كل ما يمكنني حفظه حاليًا هو ملفات app.yml ومجلد discourse الذي يحتوي على مجلد يُسمى shared، وأعتقد أنه يحتوي على قاعدة البيانات والملفات التي رفعها المستخدمون؟

إعجابَين (2)

هناك طريقتان للقيام بذلك موضحان أعلاه.

أنشئ منتدى جديدًا. انسخ نسخة احتياطية من منتداك الحالي. استعد هذه النسخة الاحتياطية في المنتدى الجديد. يمكنك توفير بعض الخطوات إذا كان كلا المنتدىين يستخدمان نفس bucket S3 للنسخ الاحتياطي.

إعجاب واحد (1)

شكرًا لك على الرد السريع،

قم بإنشاء منتدى جديد. قم بنسخ موقعك الحالي احتياطيًا. استعد هذا النسخ الاحتياطي في المنتدى الجديد. يمكنك توفير بعض الخطوات إذا كان كلا المنتدىين يستخدمان نفس سلة S3 للنسخ الاحتياطي

لماذا أحتاج إلى إجراء نسخة احتياطية يدوية لإعدادات الموقع فقط، إذا كانت الطريقة المذكورة أعلاه تنسخ احتياطيًا لجميع إعدادات الإضافات وإعدادات الموقع والصور والتحميلات وقاعدة البيانات والمواضيع وما إلى ذلك؟

إذا اتبعت هذه الخطوات الثلاث، هل سيوفر لي تصدير موقعي نسخة احتياطية كاملة لإعدادات الموقع والإضافات بالإضافة إلى قاعدة البيانات وملفات التحميل؟

  1. قم بإنشاء منتدى جديد.
  2. قم بنسخ موقعك الحالي احتياطيًا من خلال الانتقال إلى لوحة تحكم واجهة المستخدم الإدارية والذهاب إلى قسم النسخ الاحتياطي (ليس عبر سطر الأوامر، صحيح؟)
  3. استعد هذا النسخ الاحتياطي الجديد الذي حصلت عليه في الخطوة 2 وأدرجه في المنتدى الجديد الذي أنشأته في الخطوة 1.
  4. حسنًا، ليس لدي أي سلال للنسخ الاحتياطي بعد، حيث يستضاف موقعي ببساطة على قطرة (droplet) من DigitalOcean وهو موجود فقط في مجلد على خادمي داخل مجلد var/discourse/shared. لكنني لا أفهم سبب وجود ملف discourse docker.yml في /www/discourse، ولا أفهم سبب توزيع جميع ملفات discourse في هذين المجلدين اللذين يقعان في مسار مختلف.

يرجى التأكيد.

تم إغلاق هذا الموضوع تلقائيًا بعد 2335 يومًا. لم تعد الردود الجديدة مسموح بها.