إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


 
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 09-12-2010, 02:10 AM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,670
عدد الـنقاط :3341
 تقييم المستوى : 2140

I have a mysqldump cron job that runs every day on my mid-sized forum (300 concurrent users and 4gb database).

Every time it runs, the website is inaccessible. You're lucky if a page even loads. Everyone keeps refreshing and refreshing of course, which snowballs the downtime effect. Everything's hectic until the dump is complete and things return to normal.
  • If I turn vB off via the active/inactive switch in vB options, the dump takes ~8 minutes.
  • If the forum isn't deactivated during the dump, the forum is down for 30min to an hour and I've had table corruption problems recently.
Question:


Here's my cron job:

Code:
mysqldump -hxx.xx.xx.xx -uusername -ppassword forumname > /home/user/backup/forumname_`/bin/date +\%Y\%m\%d`.sql.gz
Is there a backup method that is easier on the server for daily backups?

Ideally, the forum would "turn itself off" at 0500 with a "BRB, forum database is backing up" message and then the mysqldump would run, turning the forum back on when it's finished.
__DEFINE_LIKE_SHARE__
رد مع اقتباس
 

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 12:47 PM


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML