Database

Installing Percona XtraBackup on RHEL and CentOS

XtraBackup package is available on the Percona XtraBackup software repositories. Percona yum repository supports all RPM-bases operating sytem, also supported for Amazon Linux AMI.

Installing Percona XtraBackup from Percona yum repository

Install the Percona repository

First of all you have to install Percona repository on your system by running the below command as a root user or with sudo.

# yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm

You will get some output like below:

Retrieving http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
Preparing...                ########################################### [100%]
   1:percona-release        ########################################### [100%]

Note:- RHEL5/CentOS5 does not support directly from the remote location, that’s why you will need to first download the rpm package and then install it manually like below:

# wget http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
# rpm -ivH percona-release-0.1-4.noarch.rpm 

Repository Testing

Now test package are available in repository by typing below command:

# yum list | grep percona

You will get some output like below:

...
percona-xtrabackup-20.x86_64               2.0.8-587.rhel5             percona-release-x86_64
percona-xtrabackup-20-debuginfo.x86_64     2.0.8-587.rhel5             percona-release-x86_64
percona-xtrabackup-20-test.x86_64          2.0.8-587.rhel5             percona-release-x86_64
percona-xtrabackup-21.x86_64               2.1.9-746.rhel5             percona-release-x86_64
percona-xtrabackup-21-debuginfo.x86_64     2.1.9-746.rhel5             percona-release-x86_64
percona-xtrabackup-22.x86_64               2.2.13-1.el5                percona-release-x86_64
percona-xtrabackup-22-debuginfo.x86_64     2.2.13-1.el5                percona-release-x86_64
percona-xtrabackup-debuginfo.x86_64        2.3.5-1.el5                 percona-release-x86_64
percona-xtrabackup-test.x86_64             2.3.5-1.el5                 percona-release-x86_64
percona-xtrabackup-test-21.x86_64          2.1.9-746.rhel5             percona-release-x86_64
percona-xtrabackup-test-22.x86_64          2.2.13-1.el5                percona-release-x86_64
...

Install Package

Type the below command to install Percona XtraBackup:

# yum install percona-xtrabackup-24

If you are unable to install percona-xtrabackup-24 you will need to install libev package. You can install libev package from EPEL repository.

Installing Percona XtraBackup using downloaded rpm packages

You can also downlaod and install Percona XtraBackup from download page. Type the below command:

# wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.4/binary/redhat/7/x86_64/percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm

# yum localinstall percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm

Note:- Please make sure you have installed all it dependencies and missing package.

Uninstall Percona XtraBackup

Type the below command to uninstall Percona XtraBackup completely from your system:

# yum remove percona-xtrabackup

Thanks:)

Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment