cmdntd
(cmdntd)
25 نوفمبر 2024، 3:12م
1
عند التحميل إلى s3، سيقوم discourse بحفظ النسخ الاحتياطية في مجلد default
هذا يجعل رابط التنزيل الافتراضي لـ discourse هنا غير قابل للاستخدام:
https://domain.com/admin/backups/backup.tar.gz?token=id
يجب تعديل الرابط أعلاه يدويًا على النحو التالي لاستخدامه:
https://domain.com/admin/backups/default/backup.tar.gz?token=id
كيف يمكن تكوين هذه المشكلة؟
Lilly
(Lillian Louis)
26 نوفمبر 2024، 12:34ص
2
إعجابَين (2)
cmdntd
(cmdntd)
26 نوفمبر 2024، 4:48م
3
هل هناك طريقة لتحديد هذا بمنطقة إعدادات النسخ الاحتياطي فقط؟
يبدو هذا خطيرًا بعض الشيء، لأنه إذا كان هناك حرف مطابق آخر في قاعدة البيانات بأكملها، فسيتم الكتابة فوقه:
hooks:
after_code:
- exec:
cd: $home
cmd:
- >
rails r "
Post.where(\"cooked LIKE '%/admin/backups/%'\").find_each do |post|
post.cooked = post.cooked.gsub('/admin/backups/', '/admin/backups/default/');
post.save!;
post.revise(Discourse.system_user, post.cooked, bypass_rate_limiter: true);
end
"
- >
rails r "
Upload.where(\"url LIKE '%/admin/backups/%'\").find_each do |upload|
upload.url = upload.url.gsub('/admin/backups/', '/admin/backups/default/');
upload.save!;
end
"
إعجاب واحد (1)
Lilly
(Lillian Louis)
26 نوفمبر 2024، 11:30م
5
عذرًا، لقد أخطأت في قراءة منشورك سابقًا وظننت أنك تتحدث عن روابط منتديات تم ترحيلها لسبب ما.
يبدو أن هناك شيئًا غير مُعد بشكل صحيح.
هل كان الأمر دائمًا هكذا أم قمت بتغيير شيء ما؟
This guide explains how to configure automatic backups for Discourse, including storage options on local servers and S3-compatible storage.
Learn how to set up daily automatic backups for your Discourse platform.
This guide covers configuring daily backups, storing them on local servers or S3-compatible storage, and managing storage retention options like Amazon Glacier.
Configuring daily backups
Navigate to /admin settings.
Select the Backup section.
Set the backup_frequency t…
cmdntd
(cmdntd)
27 نوفمبر 2024، 1:38م
6
أحاول الإعداد باستخدام seaweedfs s3. ولكن يبدو أنه غير موجود هنا:
This topic covers how to configure some common S3 compatible Object Storage providers (S3 clones). See Set up file and image uploads to S3 for more details about Amazon AWS S3 configuration, which is officially supported and used internally by Discourse for our hosting services.
Provider
Service Name
Works with Discourse?
Amazon AWS
S3
Yes
Digital Ocean
Spaces
Yes
Linode
Object Storage
Yes
Google Cloud
Storage
Yes
Scaleway
Object Storage
Yes
Vultr
Obj…