![]() |
mysqldumping my 4gb database kills server until it's done. better solution? 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.
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. |
الساعة الآن 01:51 AM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir