Hello all!
Our forum got pretty large and with 160k+ posts it takes quite a long time to backup the database.
Is there any guide or tips for improving the database backup speed for XenForo?
We are using XF 2.2 with MariaDB 10.1.
How long is a "long time" ?
For 160K posts that is far too long - my site with over 1 million posts only takes a couple of minutes.More than 10 minutes.
Would standard MySQL optimizations make a difference with a mysqldump? Wouldn't it be down to purely single thread speed and I/O?Try running https://github.com/major/MySQLTuner-perl to see if there are any basic recommendations you can implement to improve DB performance.
Because for the backup to finish I already had to set max execution time to 10 minutes. That's not too good for the overall server setup.Why is it a problem? Is your site read only when this occurs?
Would standard MySQL optimizations make a difference with a mysqldump? Wouldn't it be down to purely single thread speed and I/O?
Your PHP max execution time? Are you running the mysqldump via php exec()?Because for the backup to finish I already had to set max execution time to 10 minutes. That's not too good for the overall server setup.
No, it has nothing to do with PHP. I was talking about max_statement_time getting exceeded.Your PHP max execution time? Are you running the mysqldump via php exec()?
A dedicated server with HDD.Is this a dedicated server, VPS or shared hosting? What disks do you use?
Slow mechanical drives likely combined with RAID is probably going to be your biggest bottleneck. Have you considered moving to an NVMe VPS?A dedicated server with HDD.
I can always upgrade the server - I am just trying to do what I can with software before resorting to that.Slow mechanical drives likely combined with RAID is probably going to be your biggest bottleneck. Have you considered moving to an NVMe VPS?
That is almost certainly your bottleneck. What percentage iowait are you seeing onA dedicated server with HDD.
top
whilst the backup is running?We use essential cookies to make this site work, and optional cookies to enhance your experience.