r/mysql • u/GamersPlane • May 01 '25
question Avoiding site shutdown while doing backup
I run a site which is run on a virtual server (PHP and MySQL on the same server). I do backups twice a day via a script run by cronjob, which just does the backup and tars it. The problem is the site goes down for the few minutes it takes for the backup to run. I'd love advice on if there's a way to avoid that happening.
The tables are all MyISAM, and my understanding is switching to InnoDB should help? Otherwise, the only things I've been able to come up with is to create a primary/replica, disconnect the replica for the duration of the backup, and then reconnect it.
View all comments
Show parent comment
1
u/GamersPlane May 01 '25
Thanks. Seems to be a common response. Is this a common problem with MySQL DBs not on a dedicated server? This isn't something I can just do through some configs or something similar? I'm not opposed to using a tool, I just want to learn what's going on while I do it.