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

قبل بضعة أيام، أضفنا ميزة جديدة تتيح لك تحديد مكان تخزين النسخ الاحتياطية. إعداد الموقع الجديد يُسمى backup_location، ويدعم حاليًا “محلي” و"Amazon S3".

يكون الإعداد الافتراضي هو “محلي” ما لم تكن قد قمت سابقًا بتعيين enable_s3_backups لرفع النسخ الاحتياطية تلقائيًا إلى S3.

ما الذي تغير؟

حتى الآن، كانت النسخ الاحتياطية تُخزن دائمًا على القرص المحلي للخادم — وكان رفع النسخ الاحتياطية إلى S3 مجرد خطوة إضافية اختيارية في نهاية عملية النسخ الاحتياطي. مع الإعداد الجديد، يمكنك اختيار تخزين النسخ الاحتياطية إما محليًا أو على S3. سيُستخدم التخزين المحلي فقط للملفات المؤقتة أثناء عمليات النسخ الاحتياطي والاستعادة إذا اخترت S3.

كما أن علامة التبويب \u003ckbd\u003enسخ احتياطي\u003c/kbd\u003e تعمل الآن بنفس الطريقة لكل موقع تخزين نسخ احتياطية.

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

الإضافات

لسوء الحظ، يتسبب النظام الجديد في تعطيل الإضافات الحالية التي تقوم بمزامنة النسخ الاحتياطية تلقائيًا مع Dropbox أو Google Drive أو Nextcloud أو Box.

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

في الوقت الراهن، يمكنك الاطلاع على Use rclone to sync backups to Dropbox or Google Drive.

هل توجد موضوع تعليمي؟

نعم، يوجد. Configure automatic backups for Discourse

15 إعجابًا

Will the old way still work—local + S3? I like having a local backup along with the S3 for redundancy.

3 إعجابات

Local backups and sync to S3 is not possible anymore. You need to choose one backup location.

6 إعجابات

This sounds great! Does it really mean Amazon S3 or will it also work with S3 lookalikes like Digital Ocean Spaces and that thing that starts with M? (I think that I’d made backups push to Spaces a while ago.)

Is it related to this bug? Admin dashboard won’t load after upgrade to v2.2.0.beta3 +36

I haven’t tested it with anything other than Amazon S3. It might work on lookalikes too if they support the required APIs. DO might work – /reference/api/spaces-api/ looks promising.

Yes, it is.

4 إعجابات

I haven’t been able to get DigitalOcean Spaces to serve as my Discourse backup location. Might require extra setups than Amazon S3. Would appreciate it if someone can give me some pointers. Thanks!

I have this working on DO Spaces. Below are my settings for reference, be sure to take the bucket name out of the endpoint url.

6 إعجابات

Clarification on how this works when settings are changed:

  1. When once switches from S3 to Local or vice versa, do the existing backups get transferred or are they removed or are they left alone?
  2. When one see’s the list of backups in the Backup page is there a way to tell the location or are they all from the selected location in the setting?
  3. What is the meaning of this setting given that backups are no longer “synced” and either on S3 or Local? Disable the removal of backups from S3 when removed locally.
إعجابَين (2)

Existing backups won’t be touched. You need to delete them manually if you want to free up space.

Only from the selected backup location.

The description of the s3_disable_cleanup setting needs an update. It disables the removal of backups from S3 and makes the system ignore the value of maximum_backups when backup_location is set to S3.
I think we could actually remove the s3_disable_cleanup setting and allow disabling the cleanup by setting maximum_backups to 0. That would make it work for all backup locations the same way.

6 إعجابات

That makes sense to remove the option and use zero to disable removal of back ups. A follow up clarification on this, when one changes the settings, say from 120 days to 30 days, would that trigger an automatic cleanup of all the back ups?

maximum_backups has nothing to do with days…
And no, the cleanup only happens after successful backups. Changing settings doesn’t trigger anything.

4 إعجابات

Sorry, let me rephrase my question. When I change the maximum back ups from 120 to 30, the next time when it backs up, will it delete anything older than the last 30 back ups?

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

Yes, it will delete the older backups except for the last 30.

4 إعجابات