返回顶部
首页 > 资讯 > 数据库 >RHEL安装Xtrabackup
  • 604
分享到

RHEL安装Xtrabackup

2024-04-02 19:04:59 604人浏览 安东尼
摘要

Xtrabackup是由percona提供的Mysql数据库备份工具,据官方介绍,这也是世界上唯一一个开源的能够对innodb和xtradb数据库进行物理热备的工具。 Xtrabackup中主要有包含两

Xtrabackup是由percona提供的Mysql数据库备份工具,据官方介绍,这也是世界上唯一一个开源的能够对innodb和xtradb数据库进行物理热备的工具。


Xtrabackup中主要有包含两个工具:
  1.innobackupex:是将xtrabackup进行封装的perl脚本,提供了备份myisam表的能力,
  2.xtrabackup:是用于热备innodb,xtradb表中数据的工具,不能备份其他类型的表,也不能备份数据表结构;


环境:
[root@rhel72 soft]# lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise linux Server release 7.2 (Maipo)
Release:        7.2
Codename:       Maipo
[root@rhel72 soft]# uname -a
Linux rhel72 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@rhel72 soft]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.15.102  rhel72


介质:
Percona-XtraBackup-2.4.10-r3198bce-el6-x86_64-bundle.tar


Server version: 5.6.38-enterprise-commercial-advanced-log mysql Enterprise Server - Advanced Edition (Commercial)




开始安装
[root@rhel72 soft]# rpm -ivh *rpm
warning: percona-xtrabackup-24-2.4.10-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
        libev.so.4()(64bit) is needed by percona-xtrabackup-24-2.4.10-1.el6.x86_64
        rsync is needed by percona-xtrabackup-24-2.4.10-1.el6.x86_64
[root@rhel72 soft]# yum whatprovides '*/libev.so.4'
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not reGIStered to Red Hat Subscription Management. You can use subscription-manager to register.
No matches found
未在镜像中找到该包,网上下载
https://altlinux.pkgs.org/sisyphus/classic-x86_64/libev4-4.24-alt1.x86_64.rpm.html
[root@rhel72 soft]# rpm -ivh libev4-4.24-alt1.x86_64.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:libev4-4.24-alt1                 ################################# [100%]




[root@rhel72 soft]# yum whatprovides '*/rsync'
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
rsync-3.0.9-17.el7.x86_64 : A program for synchronizing files over a network
Repo        : server
Matched from:
Filename    : /usr/bin/rsync




[root@rhel72 soft]# yum -y install rsync-3.0.9-17.el7.x86_64 
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package rsync.x86_64 0:3.0.9-17.el7 will be installed
--> Finished Dependency Resolution


Dependencies Resolved


====================================================================================================================================
 Package                      Arch                          Version                             Repository                     Size
====================================================================================================================================
Installing:
 rsync                        x86_64                        3.0.9-17.el7                        server                        359 k


Transaction Summary
====================================================================================================================================
Install  1 Package


Total download size: 359 k
Installed size: 732 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : rsync-3.0.9-17.el7.x86_64                                                                                        1/1 
  Verifying  : rsync-3.0.9-17.el7.x86_64                                                                                        1/1 


Installed:
  rsync.x86_64 0:3.0.9-17.el7                                                                                                       


Complete!


--重新安装软件包
[root@rhel72 soft]# rpm -ivh *rpm
warning: percona-xtrabackup-24-2.4.10-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:percona-xtrabackup-24-2.4.10-1.el################################# [ 33%]
   2:percona-xtrabackup-test-24-2.4.10################################# [ 67%]
   3:percona-xtrabackup-24-debuginfo-2################################# [100%]
--查看帮助


[root@rhel72 soft]# xtrabackup -help|more
xtrabackup version 2.4.10 based on MySQL Server 5.7.19 Linux (x86_64) (revision id: 3198bce)
Open source backup tool for InnoDB and XtraDB


Copyright (C) 2009-2017 Percona LLC and/or its affiliates.
Portions Copyright (C) 2000, 2011, Mysql AB & Innobase Oy. All Rights Reserved.


This program is free software; you can Redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation version 2
of the License.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.


You can download full text of the license on Http://www.gnu.org/licenses/gpl-2.0.txt


Usage: [xtrabackup [--defaults-file=#] --backup | xtrabackup [--defaults-file=#] --prepare] [OPTIONS]
....




[root@rhel72 gaoyc]# innobackupex --help
Open source backup tool for InnoDB and XtraDB


Copyright (C) 2009-2015 Percona LLC and/or its affiliates.
Portions Copyright (C) 2000, 2011, MySQL AB & Innobase Oy. All Rights Reserved.


This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation version 2
of the License.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.


You can download full text of the license on http://www.gnu.org/licenses/gpl-2.0.txt




innobackupex - Non-blocking backup tool for InnoDB, XtraDB and HailDB databases


NOTICE: 'innobackupex' is deprecated, please switch to 'xtrabackup'


SYNOPOSIS


innobackupex [--compress] [--compress-threads=NUMBER-OF-THREADS] [--compress-chunk-size=CHUNK-SIZE]
             [--encrypt=ENCRYPTION-ALGoRITHM] [--encrypt-threads=NUMBER-OF-THREADS] [--encrypt-chunk-size=CHUNK-SIZE]
             [--encrypt-key=LITERAL-ENCRYPTION-KEY] | [--encryption-key-file=MY.KEY]
             [--include=REGEXP] [--user=NAME]
             [--passWord=WORD] [--port=PORT] [--Socket=SOCKET]
             [--no-timestamp] [--ibbackup=IBBACKUP-BINARY]
             [--slave-info] [--galera-info] [--stream=tar|xbstream]
             [--defaults-file=MY.CNF] [--defaults-group=GROUP-NAME]
             [--databases=LIST] [--no-lock] 
             [--tmpdir=DIRECTORY] [--tables-file=FILE]
             [--history=NAME]
             [--incremental] [--incremental-basedir]
             [--incremental-dir] [--incremental-force-scan] [--incremental-lsn]
             [--incremental-history-name=NAME] [--incremental-history-uuid=UUID]
             [--close-files] [--compact]     
             BACKUP-ROOT-DIR
innobackupex --apply-log [--use-memory=B]
             [--defaults-file=MY.CNF]
             [--export] [--redo-only] [--ibbackup=IBBACKUP-BINARY]
             BACKUP-DIR


innobackupex --copy-back [--defaults-file=MY.CNF] [--defaults-group=GROUP-NAME] BACKUP-DIR


innobackupex --move-back [--defaults-file=MY.CNF] [--defaults-group=GROUP-NAME] BACKUP-DIR


innobackupex [--decompress] [--decrypt=ENCRYPTION-ALGORITHM]
             [--encrypt-key=LITERAL-ENCRYPTION-KEY] | [--encryption-key-file=MY.KEY]
             [--parallel=NUMBER-OF-FORKS] BACKUP-DIR


.....




您可能感兴趣的文档:

--结束END--

本文标题: RHEL安装Xtrabackup

本文链接: https://lsjlt.com/news/49877.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
  • RHEL安装Xtrabackup
    Xtrabackup是由percona提供的mysql数据库备份工具,据官方介绍,这也是世界上唯一一个开源的能够对innodb和xtradb数据库进行物理热备的工具。 Xtrabackup中主要有包含两...
    99+
    2024-04-02
  • xtrabackup安装
    xtabakcup*****************************************************************  安装  *************...
    99+
    2024-04-02
  • RHEL安装python2.7.12
    一.下载python安装包二.上传python安装包文件到linux操作系统三.解压缩包四.配置、编译和安装五.检测和设置环境变量一.下载python安装包输入python网址https://www.python.org/,然后【Downl...
    99+
    2023-01-31
    RHEL
  • RHEL 6.5安装oracle11gR2
    RHEL 6.5安装oracle11gR21、安装前准备OS安装,RHEL6.5默认安装即可,关闭iptables,关闭selinux,修改本地hosts文件~]# service ip...
    99+
    2024-04-02
  • 如何安装xtrabackup
    这篇文章主要为大家展示了“如何安装xtrabackup”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“如何安装xtrabackup”这篇文章吧。解压[root@l...
    99+
    2024-04-02
  • xtrabackup如何安装
    这篇文章主要为大家展示了“xtrabackup如何安装”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“xtrabackup如何安装”这篇文章吧。xtrabacku...
    99+
    2024-04-02
  • rhel 6.5 安装oracle 11g
    1、安装RPM包yum install -y binutils elfutils-libelf glibc compat-libstdc++-33.x86_64 libgcc unixODBC java\*...
    99+
    2024-04-02
  • Centos 6.8 安装Percona Xtrabackup
    1、获取xtrabackup工具     https://www.percona.com/  我这里安装的rpm的   2、安装&nbs...
    99+
    2024-04-02
  • MySQL xtrabackup for centos7.2安装
    centos7.2上安装MySQL的备份工具xtrabackup,建议挂载镜像,配置YUM源,使用yum进行安装来解决包依赖关系; 除非使用编译安装,不要再使用rpm -ivh来安装xtrabacku...
    99+
    2024-04-02
  • 如何安装percona-xtrabackup
    如何安装percona-xtrabackup,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。1.安装依赖包:yum install cmak...
    99+
    2024-04-02
  • RHEL 6.4 安装 Oracle 11.2.0.1 R2
    安装环境:    RHEL 6.4 x86_64          &nbs...
    99+
    2024-04-02
  • CentoS 6.X安装xtrabackup 2.2.13
       作为一线运维或者DBA对数据备份绝对不会陌生,mysqldump、xtrabackup等常见备份姿势更是非常熟悉,还有很多商业备份工具以及其他的开源备份工具,所谓的冷备、热备、增量...
    99+
    2024-04-02
  • Percona xtrabackup 安装与使用
    Backup一直是数据库最重要的环节,mysql也比例外。而mysql最好的备份工具就是Percona xtrabackup和Mysql Enterprise backup(官方收费版)。Xtrabacku...
    99+
    2024-04-02
  • XtraBackup的安装与介绍
    1、安装需要的包 yum -y install cmake gcc gcc-c++ libaio libaio-devel a...
    99+
    2024-04-02
  • RHEL 6中如何安装Apache
    这篇文章主要为大家展示了“RHEL 6中如何安装Apache”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“RHEL 6中如何安装Apache”这篇文章吧。Apache 是使用最广泛的 Web 服...
    99+
    2023-06-27
  • RHEL、CentOS中怎么安装Drupal8
    这篇文章主要介绍“RHEL、CentOS中怎么安装Drupal8”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“RHEL、CentOS中怎么安装Drupal8”文章能帮助大家解决问题。Drupal是一...
    99+
    2023-06-27
  • Xtrabackup系列之:源码安装
    一、检查依赖包 rpm -q cmake gcc gcc-c++ libaio libaio-devel automake autoconf bison libtool ncurses-devel libg...
    99+
    2024-04-02
  • 怎样进行percona-xtrabackup安装
    这篇文章给大家介绍怎样进行percona-xtrabackup安装,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。Linux系统环境:Red Hat Enterprise Linux S...
    99+
    2024-04-02
  • CentOS 6.5 Xtrabackup 2.4.2怎么安装
    这篇文章主要介绍CentOS 6.5 Xtrabackup 2.4.2怎么安装,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完! --方法① --安装所需的依...
    99+
    2024-04-02
  • Percona XtraBackup如何源码安装
    小编给大家分享一下Percona XtraBackup如何源码安装,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧! ...
    99+
    2024-04-02
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作