Use Xtrabackup full volume backup and restore MySQL database

Source: Internet
Author: User
Tags mysql install perl mysql database percona perl script backup

First, Xtrabackup Simple overview:

Percona Xtrabackup is open source free MySQL database hot backup software, it can innodb and XTRADB storage Engine database non-blocking backup (for MyISAM backup also need to add table lock). Xtrabackup supports all Percona servers, MySQL, mariadb, and drizzle.

Xtrabackup Advantages:

1, no need to stop the database for InnoDB hot standby

2. Incremental backup MySQL

3, stream compression to other servers

4, can easily create master-slave synchronization

5, backup MySQL does not increase server load

Second, the installation of Xtrabackup

First list the following my current server environment

Download Xtrabackup

[Root@localhost softs]# wget http://www.percona.com/downloads/XtraBackup/LATEST/RPM/rhel5/i386/ Percona-xtrabackup-2.1.6-702.rhel5.i386.rpm--2014-01-14 10:06:41--http://www.percona.com/downloads/XtraBackup/ latest/rpm/rhel5/i386/percona-xtrabackup-2.1.6-702.rhel5.i386.rpm

Resolving www.percona.com ... 74.121.199.234

........................ Omit partial content output here ...........

100%[==========================>] 8,662,225 360k/s in 32s

2014-01-14 10:07:43 (1448 kb/s)-' percona-xtrabackup-2.1.6-702.rhel5.i386.rpm ' saved [8662225/8662225]

RPM Package Direct Installation

[Root@localhost softs]# RPM-IVH percona-xtrabackup-2.1.6-702.rhel5.i386.rpm

error:failed dependencies:

Perl (Dbd::mysql) is needed by percona-xtrabackup-2.1.6-702.rhel5.i386

Here we need to resolve the dependency package, I am using the local yum installation directly

[Root@localhost softs]# Yum Install perl-dbd-mysql-y

[Root@localhost softs]# RPM-IVH percona-xtrabackup-2.1.6-702.rhel5.i386.rpm

Preparing ... ########################################### [100%]

1:percona-xtrabackup ########################################### [100%]

Successful after attempting to install again

After installing Xtrabackup, there will actually be several tools:

Innobackupex:

This is actually a Perl script package for the following three tools that can be backed up MyISAM, InnoDB, xtradb tables.

Xtrabackup:

A binary file compiled from C that can only back up InnoDB and xtradb data.

Xbcrypt:

The data used to encrypt or decrypt the backup.

Xbstream:

A compressed file used to decompress or compress xbstream formats.

It is recommended that you use the Perl encapsulated Innobackupex as a database backup because it is easier to use.

This column more highlights: http://www.bianceng.cn/database/MySQL/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.