May 20, 201115 yr Hi All, I have a very large client who I run a cron backup every 30 mins on their MYSQL DB as they get lots of orders every hour, so its vital that information is kept safe (the hosting co do a rolling backup every night, but I'd prefer something more current to be available). The cron has been working fine for months, but now the clients DB has grown to a large size (500mb+ each backup), its having a detrimental effect on the server every time it runs (30 mins) and a server wide hang occurs for about 60 seconds. This isnt a major problem for 99% of sites, but I have a few (including this client) who are noticing it now and are not happy. Does anyone know of a good/better way of backing up MYSQL with a cron task that wouldnt involve such heavy overheads in performance please?? Really struggling with this Thanks!!
May 20, 201115 yr Never come across the problem myself, but how about scrapping the cron (or changing it to daily) and writing a script so that the db is backed up after X amount of INSERTs/UPDATEs? Or take it a step further and only back up the parts that have changed?
May 20, 201115 yr I use mysql replication for data you really cant lose like e-commerce data, it gives you a almost instant backup. it is said that data is not saved until its saved in 2 places or more
May 20, 201115 yr How are you backing up at the minute? that might actually answer the problem. Are you using mysql dump?
May 20, 201115 yr here's a comprehensive walk through of setting it up http://www.ghacks.net/2009/04/09/set-up-mysql-database-replication/ also with root/admin access to the newer phpmyadmin there is replication functions now that makes life a bit easier
May 20, 201115 yr Author Thanks guys! I use mysql replication for data you really cant lose like e-commerce data, it gives you a almost instant backup. it is said that data is not saved until its saved in 2 places or more Hosts have suggested replication, but I dont have another server to replicate too How are you backing up at the minute? that might actually answer the problem. Are you using mysql dump? Yea, just mysql dump, but also 'all tables' - hosts seem to say I cannot pick and choose tables unless I upgrade tables to INNODB, but surely I can still do that with MYSQL Dump of MYSAM tables?
May 20, 201115 yr pretty sure you can choose the tables with MyISAM as well...there's one way to be sure, give it a try
Create an account or sign in to comment