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,2009InnobaseOy
and Percona LLC and/or its affiliates 2009-2013. AllRightsReserved.
This software is published under
the GNU GENERAL PUBLIC LICENSE Version2,June1991.
Get the latest version of PerconaXtraBackup, documentation, and help resources:
http://www.percona.com/xb/p
14081014: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 server
14081014: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 innobackupex
prints "completed OK!".
innobackupex:Using mysql server version 5.5.30-log
innobackupex:Created backup directory /root/bak/2014-08-10_14-09-34
14081014: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 suspend
innobackupex: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/data
xtrabackup: open files limit requested 0,set to 40960
xtrabackup:using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir =./
xtrabackup: innodb_data_file_path = ibdata1:10M:autoextend
xtrabackup: innodb_log_group_home_dir =./
xtrabackup: innodb_log_files_in_group =2
xtrabackup: 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 suspended
14081014:09:38 innobackupex:Executing FLUSH TABLES WITH READ LOCK...
14081014:09:38 innobackupex:All tables locked and flushed to disk
14081014:09:38 innobackupex:Starting to backup non-InnoDB tables and files
innobackupex: 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 files
14081014:09:38 innobackupex:Executing FLUSH ENGINE LOGS...
14081014:09:38 innobackupex:Waitingfor log copying to finish
xtrabackup: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 unlocked
innobackupex:Backup created in directory '/root/bak/2014-08-10_14-09-34'
innobackupex:MySQL binlog position: filename 'mysql-bin.000011', position 107
14081014:09:39 innobackupex:Connection to database server closed
14081014: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 ...
随机推荐
- Android端与Android端利用WIFI进行FTP通信
一.客户端通信工具类: import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; im ...
- linux磁盘占用跟每个文件夹大小总和不符
1.一种情况是删除了大文件但是没有释放出来,因为有进程还在调用使用 最简单的方法是reboot下服务器再对比下: 2.查看服务器空间使用情况 df -h cd / du -sh *
- 应用程序有bug崩溃重启的案例2
------解决思路----------------------另外做一个服务或者程序定时监控系统进程.程序奔溃的话,都会在入口函数出现异常处理一下winform可以有两个事件来捕获主线程异常和线程异 ...
- Leetcode 之Longest Common Prefix(34)
这题实现起来还是挺麻烦的,就偷懒使用下库函数strtod().第二个参数表示字符中不是数字的地方,如果后面是空格,则认为其仍是数字,否则不是. bool isNumber(char *s) { cha ...
- asp.net的Server.MapPath方法
Server.MapPath()的功能: 返回与 Web 服务器上的指定虚拟路径相对应的物理文件路径. 命名空间: System.Web 程序集: System.Web(在 System.Web.dl ...
- JSON优缺点
总结: 1.占带宽小(格式是压缩的) 2. js通过eval()进行Json读取(便于客户端读取) 3. JSON支持多种语言(c.c++.PHP等),便于服务端解析 JSON (JavaScript ...
- AC日记——聪明的质监员 洛谷 P1314
聪明的质监员 思路: 二分: 代码: #include <bits/stdc++.h> using namespace std; #define maxn 200005 #define l ...
- 03 java 基础:注释 关键字 标识符 JShell
Java 10 中已有 Jshell 工具,方便用户在其中直接输入相关 java 代码. 注释:java 中分为单行注释 // 多行注释 /* */ 文档注释 /** */ 关键字:在 ...
- es6解构赋值总结
数组的解构赋值 1.简单的赋值方式 2.多维数组解构赋值 3.默认值,只有当右边对应位置为undefined时候才会选择默认(null不属于undefined) 4.左右不对等,会相应的对号入座,没有 ...
- magento后台语言
Magento后台自身携带了一个语言切换的功能,见后台左下角 你会发现长长的一串,其中绝大多数语言你可能根本没有机会用到,而你想要从中文切换到英文时,每次都要瞪大眼睛去找英文在下拉框的哪个位置,所以精 ...