Answer the question
In order to leave comments, you need to log in
MySQL in RAM. How to make a backup?
Good afternoon.
The administrator moved the database to the RAM. And I wrote a database backup script every 2 hours.
#!/bin/bash
/etc/init.d/mysqld stop
cd /var/mysql
rsync -arvv * /var/lib/mysql
/etc/init.d/mysqld start
Answer the question
In order to leave comments, you need to log in
It seems to me that stopping the base every two hours is not an option.Depends on reliability and uptime requirements.
Are there other ways?Make a backup from the slave.
and why mysqldump does not suit you?
well, ssd is a little simpler and more reliable than RAM
You don't need to
stop MySQL at all .
Backup options without stopping the server:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question