16、Xtrabackup备份与恢复
[root@likun data]# xtrabackup --backup --datadir=/mysql/data/--target-dir=/root/bak
[root@likun bak]# xtrabackup --prepare --use-memory=50M--datadir=/mysql/data/--target-dir=/root/bak
xtrabackup 增量备:
InnoDBBackupUtility v1.5.1-xtrabackup;Copyright2003,2009InnobaseOyand Percona LLC and/or its affiliates 2009-2013. AllRightsReserved.This software is published underthe GNU GENERAL PUBLIC LICENSE Version2,June1991.Get the latest version of PerconaXtraBackup, documentation, and help resources:http://www.percona.com/xb/p14081014:09:34 innobackupex:Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup' as 'root' (using password: NO).14081014:09:34 innobackupex:Connected to MySQL server14081014:09:34 innobackupex:Executing a version check against the server...14081014:09:34 innobackupex:Done.IMPORTANT:Please check that the backup run completes successfully.At the end of a successful backup run innobackupexprints "completed OK!".innobackupex:Using mysql server version 5.5.30-loginnobackupex:Created backup directory /root/bak/2014-08-10_14-09-3414081014:09:34 innobackupex:Starting ibbackup with command: xtrabackup --defaults-group="mysqld"--backup --suspend-at-end --target-dir=/root/bak/2014-08-10_14-09-34--tmpdir=/tmp --extra-lsndir='/tmp'innobackupex:Waitingfor ibbackup (pid=15364) to suspendinnobackupex:Suspend file '/root/bak/2014-08-10_14-09-34/xtrabackup_suspended_2'xtrabackup version 2.2.3 based on MySQL server 5.6.17Linux(x86_64)(revision id:)xtrabackup: uses posix_fadvise().xtrabackup: cd to /mysql/dataxtrabackup: open files limit requested 0,set to 40960xtrabackup:using the following InnoDB configuration:xtrabackup: innodb_data_home_dir =./xtrabackup: innodb_data_file_path = ibdata1:10M:autoextendxtrabackup: innodb_log_group_home_dir =./xtrabackup: innodb_log_files_in_group =2xtrabackup: innodb_log_file_size =5242880>> log scanned up to (1670110)[01]Copying./ibdata1 to /root/bak/2014-08-10_14-09-34/ibdata1>> log scanned up to (1670110)[01] ...done>> log scanned up to (1670110)[01]Copying./db1/test3.ibd to /root/bak/2014-08-10_14-09-34/db1/test3.ibd[01] ...done[01]Copying./db1/test1.ibd to /root/bak/2014-08-10_14-09-34/db1/test1.ibd[01] ...done[01]Copying./db1/test4.ibd to /root/bak/2014-08-10_14-09-34/db1/test4.ibd[01] ...done[01]Copying./mysql/abc.ibd to /root/bak/2014-08-10_14-09-34/mysql/abc.ibd[01] ...done[01]Copying./db2/test.ibd to /root/bak/2014-08-10_14-09-34/db2/test.ibd[01] ...done>> log scanned up to (1670110)xtrabackup:Creating suspend file '/root/bak/2014-08-10_14-09-34/xtrabackup_suspended_2' with pid '15364'14081014:09:38 innobackupex:Continuing after ibbackup has suspended14081014:09:38 innobackupex:Executing FLUSH TABLES WITH READ LOCK...14081014:09:38 innobackupex:All tables locked and flushed to disk14081014:09:38 innobackupex:Starting to backup non-InnoDB tables and filesinnobackupex: in subdirectories of '/mysql/data'innobackupex:Backing up file '/mysql/data/db1/test4.frm'innobackupex:Backing up file '/mysql/data/db1/test3.frm'>> log scanned up to (1670110)innobackupex:Backing up file '/mysql/data/db1/db.opt'innobackupex:Backing up file '/mysql/data/db1/test1.frm'innobackupex:Backing up files '/mysql/data/mysql/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}'(73 files)innobackupex:Backing up files '/mysql/data/performance_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}'(18 files)innobackupex:Backing up file '/mysql/data/db2/db.opt'innobackupex:Backing up file '/mysql/data/db2/test.frm'14081014:09:38 innobackupex:Finished backing up non-InnoDB tables and files14081014:09:38 innobackupex:Executing FLUSH ENGINE LOGS...14081014:09:38 innobackupex:Waitingfor log copying to finishxtrabackup:The latest check point (for incremental):'1670110'xtrabackup:Stopping log copying thread..>> log scanned up to (1670110)xtrabackup:Creating suspend file '/root/bak/2014-08-10_14-09-34/xtrabackup_log_copied' with pid '15364'xtrabackup:Transaction log of lsn (1670110) to (1670110) was copied.14081014:09:39 innobackupex:All tables unlockedinnobackupex:Backup created in directory '/root/bak/2014-08-10_14-09-34'innobackupex:MySQL binlog position: filename 'mysql-bin.000011', position 10714081014:09:39 innobackupex:Connection to database server closed14081014:09:39 innobackupex: completed OK!
16、Xtrabackup备份与恢复的更多相关文章
- xtrabackup备份与恢复实践
说明 xtrabackup --percona 特点: 开源,在线备份innodb表 支持限速备份,避免对业务造成影响 支持流备 支持增量备份 支持备份文件压缩与加密 支持并行备份与恢复,速度快 ...
- MySQL入门篇(七)之Xtrabackup备份与恢复
一.Xtrabackup介绍 MySQL冷备.mysqldump.MySQL热拷贝都无法实现对数据库进行增量备份.在实际生产环境中增量备份是非常实用的,如果数据大于50G或100G,存储空间足够的情况 ...
- Xtrabackup备份与恢复MySQL
1.innobackupex备份原理 .innobackupex启动并fork一个进程启动xtrabackup,然后等待xtrabackup备份InnoDB文件; .xtrabackup备份时存在两个 ...
- Xtrabackup备份与恢复
一.Xtrabackup介绍 MySQL冷备.mysqldump.MySQL热拷贝都无法实现对数据库进行增量备份.在实际生产环境中增量备份是非常实用的,如果数据大于50G或100G,存储空间足够的情况 ...
- Linux基础学习(16)--备份与恢复
第十六章——备份与恢复 一.备份概述 1.Linux系统需要备份的数据: 2.备份策略: 二.dump和restore命令 1.dump命令: 2.restore命令:
- XtraBackup 备份与恢复实例讲解
前一篇文章我们讲到了PXB的原理以及安装方法,接下来将详细介绍 XtraBackup 备份和恢复的具体过程. xtrabackup 选项 xtrabackup 工具有许多参数,具体可去官网查询(xtr ...
- xtrabackup 备份与恢复
书上摘抄 ---深入浅出mysql 448页 grant reload on *.* to 'backup'@'localhost' identified by '123456'; grant re ...
- mysql 开发进阶篇系列 46 物理备份与恢复( xtrabackup的 选项说明,增加备份用户,完全备份案例)
一. xtrabackup 选项说明 在操作xtrabackup备份与恢复之前,先看下该工具的选项,下面记录了xtrabackup二进制文件的部分命令行选项,后期把常用的选项在补上.点击查看xtrab ...
- Mysql—数据备份与恢复
数据备份 # 备份单个数据库 [root@localhost ~]# mysqldump -h主机名 -u用户名 -p密码 数据库名字 > 备份的数据库名字.sql [root@localhos ...
随机推荐
- elasticsearch索引加别名
curl -XPOST 'http://localhost:9200/_aliases' -d ' { "actions": [ {&qu ...
- python中的偏函数partial
Python的functools模块提供了很多有用的功能,其中一个就是偏函数(Partial function).要注意,这里的偏函数和数学意义上的偏函数不一样. 在介绍函数参数的时候,我们讲到,通过 ...
- hdu 2883(构图+最大流+压缩区间)
kebab Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submi ...
- 关于星号(**/*.java)
关于星号(**/*.java) (1)前面两个星号(**)表示在项目的所有文件夹(包括子文件夹)中的文件:*.java表示以 .java结尾的所有文件. (2)如果前面两个星号(**)没有,只有星号( ...
- RSA的公钥和私钥到底哪个才是用来加密和哪个用来解密?
https://www.zhihu.com/question/25912483?sort=created
- .NET 简单的递归使用场景
什么是递归:自己调用自己,直到满足条件跳出 递归的缺点: 递归很耗内存,容易让机器挂掉 比如递归文件夹,当文件夹的层级有非常非常多的时候,就很容易挂掉,因为递归的时候把上层文件夹的上下文都保存在内存中 ...
- JavaScript如何判断变量是数组还是对象
编辑 方法一:通过判断变量的类型,并且变量的length属性(除了有一种例外是arguments对象–当给函数传参时数据存储的地方) var arr=[2,3,4]; var obj={"n ...
- lr手工添加关联函数的步骤:
点击“确定”后: 如何修改已经创建好的关联规则:
- ceph 安装记录
ceph 安装 http://docs.ceph.com/docs/master/start/quick-ceph-deploy/ 1. 系统要求 centos 7 systemctl disable ...
- window10 Powershell使用curl命令报错解决方法
报错信息:curl : 无法分析响应内容,因为 Internet Explorer 引擎不可用,或者 Internet Explorer 的首次启动配置不完整.请指定 UseBasicParsing ...