V
V
Voldemar Duletsky2012-10-22 18:47:27
MySQL
Voldemar Duletsky, 2012-10-22 18:47:27

How to organize MySQL hot backup?

There is a server on which a medium-sized database is spinning (about 1GB), during deployment, before migrations, a backup of the database (mysqldump) is made, which seriously slows down the deployment of a new version of the site.

Does it make sense to deploy Percona Xtrabackup for a quick database backup and in which case a quick restore to a previous state? What are the results in terms of backup time, restore compared to mysqldump?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Ad3pt, 2012-10-22
@Ad3pt

In my opinion, the easiest way in this case is to organize master-slave replication. Before the release, stop replication, make a backup from the slave. If something went wrong on the master during the release, switch all requests to the slave.

E
eugene_t, 2012-10-22
@eugene_t

we use mysql with a database on a zfs partition. if a downntime of ten seconds is not critical, in such situations it is faster and more reliable to do the following:
1. stop mysql
2. take a zfs snapshot of the partition with the database (atomic operation, performed instantly)
3. start mysql
recovery is the same, instead of step 2 - rollback , also an atomic operation

S
script88, 2012-10-22
@script88

Use the snapshots and go to percona server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question