Mysql热备增量备份与恢复(四)--恢复增量2

1 在第一次增量恢复的基础上进行第二次增量恢复
[mysql@server ~]$ innobackupex --no-timestamp --defaults-file=/etc/my.cnf --apply-log --redo-only /home/mysql/db_full_20141103/ --incremental-dir[mysql@server ~]$ innobackupex --no-timestamp --defaults-file=/etc/my.cnf --apply-log --redo-only /home/mysql/db_full_20141103/ --incremental-dir=/home/mysql/db_full_20141113-incr2

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013.  All Rights Reserved.

This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

Get the latest version of Percona XtraBackup, documentation, and help resources:
http://www.percona.com/xb/p

141113 18:40:00  innobackupex: Starting the apply-log operation

IMPORTANT: Please check that the apply-log run completes successfully.
           At the end of a successful apply-log run innobackupex
           prints "completed OK!".


141113 18:40:00  innobackupex: Starting ibbackup with command: xtrabackup  --defaults-file="/home/mysql/db_full_20141103/backup-my.cnf"  --defaults-group="mysqld" --prepare --target-dir=/home/mysql/db_full_20141103 --apply-log-only --incremental-dir=/home/mysql/db_full_20141113-incr2

xtrabackup version 2.2.6 based on MySQL server 5.6.21 Linux (x86_64) (revision id: )
incremental backup from 2117817 is enabled.
xtrabackup: cd to /home/mysql/db_full_20141103
xtrabackup: This target seems to be already prepared.
xtrabackup: xtrabackup_logfile detected: size=2097152, start_lsn=(2146660)
xtrabackup: using the following InnoDB configuration for recovery:
xtrabackup:   innodb_data_home_dir = ./
xtrabackup:   innodb_data_file_path = ibdata1:1G:autoextend
xtrabackup:   innodb_log_group_home_dir = /home/mysql/db_full_20141113-incr2
xtrabackup:   innodb_log_files_in_group = 1
xtrabackup:   innodb_log_file_size = 2097152
xtrabackup: Generating a list of tablespaces
xtrabackup: page size for /home/mysql/db_full_20141113-incr2/ibdata1.delta is 16384 bytes
Applying /home/mysql/db_full_20141113-incr2/ibdata1.delta to ./ibdata1...
xtrabackup: page size for /home/mysql/db_full_20141113-incr2/dao/t_dao.ibd.delta is 16384 bytes
Applying /home/mysql/db_full_20141113-incr2/dao/t_dao.ibd.delta to ./dao/t_dao.ibd...
xtrabackup: using the following InnoDB configuration for recovery:
xtrabackup:   innodb_data_home_dir = ./
xtrabackup:   innodb_data_file_path = ibdata1:1G:autoextend
xtrabackup:   innodb_log_group_home_dir = /home/mysql/db_full_20141113-incr2
xtrabackup:   innodb_log_files_in_group = 1
xtrabackup:   innodb_log_file_size = 2097152
xtrabackup: Starting InnoDB instance for recovery.
xtrabackup: Using 104857600 bytes for buffer pool (set by --use-memory parameter)
InnoDB: Using atomics to ref count buffer pool pages
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Memory barrier is not used
InnoDB: Compressed tables use zlib 1.2.3
InnoDB: Using CPU crc32 instructions
InnoDB: Initializing buffer pool, size = 100.0M
InnoDB: Completed initialization of buffer pool
InnoDB: Highest supported file format is Barracuda.
InnoDB: The log sequence numbers 2117817 and 2117817 in ibdata files do not match the log sequence number 2146660 in the ib_logfiles!
InnoDB: Database was not shutdown normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages 
InnoDB: from the doublewrite buffer...
InnoDB: Last MySQL binlog file position 0 44815, file name ./mybinlog.000001

[notice (again)]
  If you use binary log and don't use any hack of group commit,
  the binary log position seems to be:
InnoDB: Last MySQL binlog file position 0 44815, file name ./mybinlog.000001

xtrabackup: starting shutdown with innodb_fast_shutdown = 1
InnoDB: Starting shutdown...
InnoDB: Shutdown completed; log sequence number 2146660
innobackupex: Starting to copy non-InnoDB files in '/home/mysql/db_full_20141113-incr2'
innobackupex: to the full backup directory '/home/mysql/db_full_20141103'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/xtrabackup_info' to '/home/mysql/db_full_20141103/xtrabackup_info'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/xtrabackup_binlog_info' to '/home/mysql/db_full_20141103/xtrabackup_binlog_info'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/host.MYI' to '/home/mysql/db_full_20141103/mysql/host.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_transition_type.MYI' to '/home/mysql/db_full_20141103/mysql/time_zone_transition_type.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/plugin.MYI' to '/home/mysql/db_full_20141103/mysql/plugin.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/slow_log.CSM' to '/home/mysql/db_full_20141103/mysql/slow_log.CSM'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_keyword.MYI' to '/home/mysql/db_full_20141103/mysql/help_keyword.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_transition.frm' to '/home/mysql/db_full_20141103/mysql/time_zone_transition.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/servers.frm' to '/home/mysql/db_full_20141103/mysql/servers.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/columns_priv.frm' to '/home/mysql/db_full_20141103/mysql/columns_priv.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/columns_priv.MYD' to '/home/mysql/db_full_20141103/mysql/columns_priv.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/func.MYD' to '/home/mysql/db_full_20141103/mysql/func.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/event.MYD' to '/home/mysql/db_full_20141103/mysql/event.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/proc.frm' to '/home/mysql/db_full_20141103/mysql/proc.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/tables_priv.frm' to '/home/mysql/db_full_20141103/mysql/tables_priv.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_relation.frm' to '/home/mysql/db_full_20141103/mysql/help_relation.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/event.frm' to '/home/mysql/db_full_20141103/mysql/event.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/user.MYI' to '/home/mysql/db_full_20141103/mysql/user.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_leap_second.MYD' to '/home/mysql/db_full_20141103/mysql/time_zone_leap_second.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_transition_type.MYD' to '/home/mysql/db_full_20141103/mysql/time_zone_transition_type.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/proc.MYD' to '/home/mysql/db_full_20141103/mysql/proc.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/procs_priv.MYD' to '/home/mysql/db_full_20141103/mysql/procs_priv.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/slow_log.frm' to '/home/mysql/db_full_20141103/mysql/slow_log.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/proxies_priv.frm' to '/home/mysql/db_full_20141103/mysql/proxies_priv.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/servers.MYD' to '/home/mysql/db_full_20141103/mysql/servers.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_name.MYD' to '/home/mysql/db_full_20141103/mysql/time_zone_name.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/plugin.MYD' to '/home/mysql/db_full_20141103/mysql/plugin.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/proxies_priv.MYI' to '/home/mysql/db_full_20141103/mysql/proxies_priv.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_relation.MYD' to '/home/mysql/db_full_20141103/mysql/help_relation.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_category.MYD' to '/home/mysql/db_full_20141103/mysql/help_category.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone.MYD' to '/home/mysql/db_full_20141103/mysql/time_zone.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/plugin.frm' to '/home/mysql/db_full_20141103/mysql/plugin.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/ndb_binlog_index.MYD' to '/home/mysql/db_full_20141103/mysql/ndb_binlog_index.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/general_log.frm' to '/home/mysql/db_full_20141103/mysql/general_log.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone.MYI' to '/home/mysql/db_full_20141103/mysql/time_zone.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_topic.MYD' to '/home/mysql/db_full_20141103/mysql/help_topic.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/procs_priv.MYI' to '/home/mysql/db_full_20141103/mysql/procs_priv.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_category.frm' to '/home/mysql/db_full_20141103/mysql/help_category.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/func.frm' to '/home/mysql/db_full_20141103/mysql/func.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_transition.MYD' to '/home/mysql/db_full_20141103/mysql/time_zone_transition.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_name.frm' to '/home/mysql/db_full_20141103/mysql/time_zone_name.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/general_log.CSV' to '/home/mysql/db_full_20141103/mysql/general_log.CSV'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_transition_type.frm' to '/home/mysql/db_full_20141103/mysql/time_zone_transition_type.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/slow_log.CSV' to '/home/mysql/db_full_20141103/mysql/slow_log.CSV'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/host.frm' to '/home/mysql/db_full_20141103/mysql/host.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_leap_second.MYI' to '/home/mysql/db_full_20141103/mysql/time_zone_leap_second.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/db.MYI' to '/home/mysql/db_full_20141103/mysql/db.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/columns_priv.MYI' to '/home/mysql/db_full_20141103/mysql/columns_priv.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/tables_priv.MYI' to '/home/mysql/db_full_20141103/mysql/tables_priv.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_leap_second.frm' to '/home/mysql/db_full_20141103/mysql/time_zone_leap_second.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/servers.MYI' to '/home/mysql/db_full_20141103/mysql/servers.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/general_log.CSM' to '/home/mysql/db_full_20141103/mysql/general_log.CSM'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/ndb_binlog_index.MYI' to '/home/mysql/db_full_20141103/mysql/ndb_binlog_index.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_keyword.frm' to '/home/mysql/db_full_20141103/mysql/help_keyword.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/host.MYD' to '/home/mysql/db_full_20141103/mysql/host.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/db.MYD' to '/home/mysql/db_full_20141103/mysql/db.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone.frm' to '/home/mysql/db_full_20141103/mysql/time_zone.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_keyword.MYD' to '/home/mysql/db_full_20141103/mysql/help_keyword.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/proc.MYI' to '/home/mysql/db_full_20141103/mysql/proc.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/event.MYI' to '/home/mysql/db_full_20141103/mysql/event.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/func.MYI' to '/home/mysql/db_full_20141103/mysql/func.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/tables_priv.MYD' to '/home/mysql/db_full_20141103/mysql/tables_priv.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_topic.frm' to '/home/mysql/db_full_20141103/mysql/help_topic.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_category.MYI' to '/home/mysql/db_full_20141103/mysql/help_category.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/ndb_binlog_index.frm' to '/home/mysql/db_full_20141103/mysql/ndb_binlog_index.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/user.frm' to '/home/mysql/db_full_20141103/mysql/user.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_name.MYI' to '/home/mysql/db_full_20141103/mysql/time_zone_name.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_topic.MYI' to '/home/mysql/db_full_20141103/mysql/help_topic.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/time_zone_transition.MYI' to '/home/mysql/db_full_20141103/mysql/time_zone_transition.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/proxies_priv.MYD' to '/home/mysql/db_full_20141103/mysql/proxies_priv.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/db.frm' to '/home/mysql/db_full_20141103/mysql/db.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/user.MYD' to '/home/mysql/db_full_20141103/mysql/user.MYD'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/procs_priv.frm' to '/home/mysql/db_full_20141103/mysql/procs_priv.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/mysql/help_relation.MYI' to '/home/mysql/db_full_20141103/mysql/help_relation.MYI'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/dao/t_dao.frm' to '/home/mysql/db_full_20141103/dao/t_dao.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/dao/db.opt' to '/home/mysql/db_full_20141103/dao/db.opt'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/setup_instruments.frm' to '/home/mysql/db_full_20141103/performance_schema/setup_instruments.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/file_summary_by_instance.frm' to '/home/mysql/db_full_20141103/performance_schema/file_summary_by_instance.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/events_waits_summary_global_by_event_name.frm' to '/home/mysql/db_full_20141103/performance_schema/events_waits_summary_global_by_event_name.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/mutex_instances.frm' to '/home/mysql/db_full_20141103/performance_schema/mutex_instances.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/setup_consumers.frm' to '/home/mysql/db_full_20141103/performance_schema/setup_consumers.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/events_waits_summary_by_thread_by_event_name.frm' to '/home/mysql/db_full_20141103/performance_schema/events_waits_summary_by_thread_by_event_name.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/file_summary_by_event_name.frm' to '/home/mysql/db_full_20141103/performance_schema/file_summary_by_event_name.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/file_instances.frm' to '/home/mysql/db_full_20141103/performance_schema/file_instances.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/events_waits_history_long.frm' to '/home/mysql/db_full_20141103/performance_schema/events_waits_history_long.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/threads.frm' to '/home/mysql/db_full_20141103/performance_schema/threads.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/cond_instances.frm' to '/home/mysql/db_full_20141103/performance_schema/cond_instances.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/db.opt' to '/home/mysql/db_full_20141103/performance_schema/db.opt'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/events_waits_summary_by_instance.frm' to '/home/mysql/db_full_20141103/performance_schema/events_waits_summary_by_instance.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/rwlock_instances.frm' to '/home/mysql/db_full_20141103/performance_schema/rwlock_instances.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/performance_timers.frm' to '/home/mysql/db_full_20141103/performance_schema/performance_timers.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/events_waits_history.frm' to '/home/mysql/db_full_20141103/performance_schema/events_waits_history.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/setup_timers.frm' to '/home/mysql/db_full_20141103/performance_schema/setup_timers.frm'
innobackupex: Copying '/home/mysql/db_full_20141113-incr2/performance_schema/events_waits_current.frm' to '/home/mysql/db_full_20141103/performance_schema/events_waits_current.frm'
141113 18:40:01  innobackupex: completed OK!
[mysql@server ~]$ innobackupex --no-timestamp --defaults-file=/etc/my.cnf --apply-log --redo-only /home/mysql/db_full_20141103/ --incremental-dir[mysql@server ~]$ mysql
[mysql@server ~]$ mysqld_multi stop 3306
[mysql@server ~]$ innobackupex --no-timestamp --defaults-file=/etc/my.cnf --apply-log --redo-only /home/mysql/db_full_20141103/ --incremental-dir[mysql@server ~]$ mysql
[mysql@server ~]$ innobackupex --no-timestamp --defaults-file=/etc/my.cnf --apply-log --redo-only /home/mysql/db_full_20141103/ --incremental-dir[mysql@server ~]$ mysql
[mysql@server ~]$ rm -rf /data/mysql/dao_3306/data/*
[mysql@server ~]$ innobackupex --no-timestamp --defaults-file=/etc/my.cnf --apply-log --redo-only /home/mysql/db_full_20141103/ --incremental-dir[mysql@server ~]$ mysql
[mysql@server ~]$ cp -r /home/mysql/db_full_20141103/* /data/mysql/dao_3306/data/
[mysql@server ~]$ rm -rf /data/mysql/dao_3306/data/*
[mysql@server ~]$  innobackupex --defaults-file=/home/mysql/db_full_20141103/backup-my.cnf  --apply /home/mysql/db_full_20141103/

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013.  All Rights Reserved.

This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

Get the latest version of Percona XtraBackup, documentation, and help resources:
http://www.percona.com/xb/p

141113 18:41:35  innobackupex: Starting the apply-log operation

IMPORTANT: Please check that the apply-log run completes successfully.
           At the end of a successful apply-log run innobackupex
           prints "completed OK!".


141113 18:41:35  innobackupex: Starting ibbackup with command: xtrabackup  --defaults-file="/home/mysql/db_full_20141103/backup-my.cnf"  --defaults-group="mysqld" --prepare --target-dir=/home/mysql/db_full_20141103

xtrabackup version 2.2.6 based on MySQL server 5.6.21 Linux (x86_64) (revision id: )
xtrabackup: cd to /home/mysql/db_full_20141103
xtrabackup: This target seems to be already prepared.
xtrabackup: notice: xtrabackup_logfile was already used to '--prepare'.
xtrabackup: using the following InnoDB configuration for recovery:
xtrabackup:   innodb_data_home_dir = ./
xtrabackup:   innodb_data_file_path = ibdata1:1G:autoextend
xtrabackup:   innodb_log_group_home_dir = ./
xtrabackup:   innodb_log_files_in_group = 3
xtrabackup:   innodb_log_file_size = 268435456
xtrabackup: using the following InnoDB configuration for recovery:
xtrabackup:   innodb_data_home_dir = ./
xtrabackup:   innodb_data_file_path = ibdata1:1G:autoextend
xtrabackup:   innodb_log_group_home_dir = ./
xtrabackup:   innodb_log_files_in_group = 3
xtrabackup:   innodb_log_file_size = 268435456
xtrabackup: Starting InnoDB instance for recovery.
xtrabackup: Using 104857600 bytes for buffer pool (set by --use-memory parameter)
InnoDB: Using atomics to ref count buffer pool pages
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Memory barrier is not used
InnoDB: Compressed tables use zlib 1.2.3
InnoDB: Using CPU crc32 instructions
InnoDB: Initializing buffer pool, size = 100.0M
InnoDB: Completed initialization of buffer pool
InnoDB: Setting log file ./ib_logfile101 size to 256 MB
InnoDB: Progress in MB: 100 200
InnoDB: Setting log file ./ib_logfile1 size to 256 MB
InnoDB: Progress in MB: 100 200
InnoDB: Setting log file ./ib_logfile2 size to 256 MB
InnoDB: Progress in MB: 100 200
InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
InnoDB: New log files created, LSN=2146660
InnoDB: Highest supported file format is Barracuda.
InnoDB: 128 rollback segment(s) are active.
InnoDB: 5.6.21 started; log sequence number 2146828

[notice (again)]
  If you use binary log and don't use any hack of group commit,
  the binary log position seems to be:
InnoDB: Last MySQL binlog file position 0 44815, file name ./mybinlog.000001

xtrabackup: starting shutdown with innodb_fast_shutdown = 1
InnoDB: FTS optimize thread exiting.
InnoDB: Starting shutdown...
InnoDB: Shutdown completed; log sequence number 2146838

141113 18:41:38  innobackupex: Restarting xtrabackup with command: xtrabackup  --defaults-file="/home/mysql/db_full_20141103/backup-my.cnf"  --defaults-group="mysqld" --prepare --target-dir=/home/mysql/db_full_20141103
for creating ib_logfile*

xtrabackup version 2.2.6 based on MySQL server 5.6.21 Linux (x86_64) (revision id: )
xtrabackup: cd to /home/mysql/db_full_20141103
xtrabackup: This target seems to be already prepared.
xtrabackup: notice: xtrabackup_logfile was already used to '--prepare'.
xtrabackup: using the following InnoDB configuration for recovery:
xtrabackup:   innodb_data_home_dir = ./
xtrabackup:   innodb_data_file_path = ibdata1:1G:autoextend
xtrabackup:   innodb_log_group_home_dir = ./
xtrabackup:   innodb_log_files_in_group = 3
xtrabackup:   innodb_log_file_size = 268435456
xtrabackup: using the following InnoDB configuration for recovery:
xtrabackup:   innodb_data_home_dir = ./
xtrabackup:   innodb_data_file_path = ibdata1:1G:autoextend
xtrabackup:   innodb_log_group_home_dir = ./
xtrabackup:   innodb_log_files_in_group = 3
xtrabackup:   innodb_log_file_size = 268435456
xtrabackup: Starting InnoDB instance for recovery.
xtrabackup: Using 104857600 bytes for buffer pool (set by --use-memory parameter)
InnoDB: Using atomics to ref count buffer pool pages
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Memory barrier is not used
InnoDB: Compressed tables use zlib 1.2.3
InnoDB: Using CPU crc32 instructions
InnoDB: Initializing buffer pool, size = 100.0M
InnoDB: Completed initialization of buffer pool
InnoDB: Highest supported file format is Barracuda.
InnoDB: 128 rollback segment(s) are active.
InnoDB: 5.6.21 started; log sequence number 2146838

[notice (again)]
  If you use binary log and don't use any hack of group commit,
  the binary log position seems to be:
InnoDB: Last MySQL binlog file position 0 44815, file name ./mybinlog.000001

xtrabackup: starting shutdown with innodb_fast_shutdown = 1
InnoDB: FTS optimize thread exiting.
InnoDB: Starting shutdown...
InnoDB: Shutdown completed; log sequence number 2146848
141113 18:41:40  innobackupex: completed OK!

[mysql@server ~]$ ll
total 16
drwxrwxr-x 6 mysql mysql 4096 Nov 13 18:41 db_full_20141103
drwxrwxr-x 6 mysql mysql 4096 Nov 13 18:36 db_full_20141113-incr1
drwxrwxr-x 6 mysql mysql 4096 Nov 13 18:40 db_full_20141113-incr2
drwxrwxr-x 2 mysql mysql 4096 Nov 13 18:35 only
2 恢复数据到之前的位置
[mysql@server ~]$ rm -rf /data/mysql/dao_3306/data/*
[mysql@server ~]$ cp -r /home/mysql/db_full_20141103/* /data/mysql/dao_3306/data/
[mysql@server ~]$ mysqld_multi  start 3306
[mysql@server ~]$ mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.38-log MySQL Community Server (GPL)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

"root@localhost Thu Nov 13 18:43:09 2014 18:43:09 [(none)]>use dao ;
Database changed
"root@localhost Thu Nov 13 18:43:12 2014 18:43:12 [dao]>select count(*) from t_dao ;
+----------+
| count(*) |
+----------+
|     1280 |
+----------+
1 row in set (0.02 sec)

"root@localhost Thu Nov 13 18:43:20 2014 18:43:20 [dao]>exit
Bye


你可能感兴趣的:(MYSQL)