Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Backing up large MYSQL Database

Featured Replies

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!!

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?

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

Good info Snider! I'm gonna look into that for my own stuff!

  • 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?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.