innobackupex备份命令输出

 通过屏幕输出了解备份过程

首先读取my.cnf 文件,找到参数配置和数据目录等

备份innodb文件

加锁 开始备份非innodb文件 

190613 16:40:06 Executing FLUSH NO_WRITE_TO_BINLOG TABLES...
190613 16:40:06 Executing FLUSH TABLES WITH READ LOCK...
190613 16:40:06 Starting to backup non-InnoDB tables and files

完成非innodb文件备份

190613 16:40:07 Finished backing up non-InnoDB tables and file

写入xtrabackup_binlog_info文件

190613 16:40:07 [00] Writing /server/backup/2019-06-13_16-40-00/xtrabackup_binlog_info
190613 16:40:07 [00]        ...done
190613 16:40:07 Executing FLUSH NO_WRITE_TO_BINLOG ENGINE LOGS...
xtrabackup: The latest check point (for incremental): '165695722'

停止日志拷贝进程
xtrabackup: Stopping log copying thread.
.190613 16:40:07 >> log scanned up to (165695731)

释放锁
190613 16:40:07 Executing UNLOCK TABLES
190613 16:40:07 All tables unlocked
190613 16:40:07 [00] Copying ib_buffer_pool to /server/backup/2019-06-13_16-40-00/ib_buffer_pool
190613 16:40:07 [00]        ...done
190613 16:40:07 Backup created in directory '/server/backup/2019-06-13_16-40-00/'
MySQL binlog position: filename 'mysql-bin.000014', position '7116'
190613 16:40:07 [00] Writing /server/backup/2019-06-13_16-40-00/backup-my.cnf
190613 16:40:07 [00]        ...done
190613 16:40:07 [00] Writing /server/backup/2019-06-13_16-40-00/xtrabackup_info
190613 16:40:07 [00]        ...done

提示completed OK完成备份

xtrabackup: Transaction log of lsn (165695722) to (165695731) was copied.
190613 16:40:07 completed OK!

[root@Master ~]# innobackupex --defaults-file=/etc/my.cnf --user=root --password=root  --port=3306   --socket=/server/mysql_data/mysql.sock  /server/backup 
xtrabackup: recognized server arguments: --server-id=101 --innodb=FORCE --datadir=/server/mysql_data/ --log_bin=/server/mysql_data/mysql-bin --innodb_flush_log_at_trx_commit=1 --open_files_limit=65535 --innodb_open_files=65535 --innodb_flush_method=O_DIRECT --innodb_log_files_in_group=2 --innodb_log_file_size=1G --innodb_flush_log_at_trx_commit=1 --innodb_file_per_table=1 --innodb_buffer_pool_size=1G 
xtrabackup: recognized client arguments: --server-id=101 --innodb=FORCE --datadir=/server/mysql_data/ --log_bin=/server/mysql_data/mysql-bin --innodb_flush_log_at_trx_commit=1 --open_files_limit=65535 --innodb_open_files=65535 --innodb_flush_method=O_DIRECT --innodb_log_files_in_group=2 --innodb_log_file_size=1G --innodb_flush_log_at_trx_commit=1 --innodb_file_per_table=1 --innodb_buffer_pool_size=1G 
190613 16:40:00 innobackupex: Starting the backup operation

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

190613 16:40:01  version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;port=3306;mysql_socket=/server/mysql_data/mysql.sock' as 'root'  (using password: YES).
190613 16:40:01  version_check Connected to MySQL server
190613 16:40:01  version_check Executing a version check against the server...
*******************************************************************
 Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
 is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
 possibly with SSL_ca_file|SSL_ca_path for verification.
 If you really don't want to verify the certificate and keep the
 connection open to Man-In-The-Middle attacks please set
 SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.
*******************************************************************
  at - line 237.
*******************************************************************
 Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
 is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
 possibly with SSL_ca_file|SSL_ca_path for verification.
 If you really don't want to verify the certificate and keep the
 connection open to Man-In-The-Middle attacks please set
 SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.
*******************************************************************
  at - line 237.

# A software update is available:
190613 16:40:05  version_check Done.
190613 16:40:05 Connecting to MySQL server host: localhost, user: root, password: set, port: 3306, socket: /server/mysql_data/mysql.sock
Using server version 5.7.21-log
innobackupex version 2.4.14 based on MySQL server 5.7.19 Linux (x86_64) (revision id: ef675d4)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /server/mysql_data/
xtrabackup: open files limit requested 65535, set to 65535
xtrabackup: using the following InnoDB configuration:
xtrabackup:   innodb_data_home_dir = .
xtrabackup:   innodb_data_file_path = ibdata1:12M:autoextend
xtrabackup:   innodb_log_group_home_dir = ./
xtrabackup:   innodb_log_files_in_group = 2
xtrabackup:   innodb_log_file_size = 1073741824
xtrabackup: using O_DIRECT
InnoDB: Number of pools: 1
190613 16:40:05 >> log scanned up to (165695731)
xtrabackup: Generating a list of tablespaces
InnoDB: Allocated tablespace ID 2 for mysql/plugin, old maximum was 0
190613 16:40:05 [01] Copying ./ibdata1 to /server/backup/2019-06-13_16-40-00/ibdata1
190613 16:40:06 [01]        ...done
190613 16:40:06 [01] Copying ./test/zhengxin_loan_behavior_feature.ibd to /server/backup/2019-06-13_16-40-00/test/zhengxin_loan_behavior_feature.ibd
190613 16:40:06 [01]        ...done
190613 16:40:06 [01] Copying ./test01/user_info.ibd to /server/backup/2019-06-13_16-40-00/test01/user_info.ibd
190613 16:40:06 [01]        ...done
190613 16:40:06 Executing FLUSH NO_WRITE_TO_BINLOG TABLES...
190613 16:40:06 Executing FLUSH TABLES WITH READ LOCK...
190613 16:40:06 Starting to backup non-InnoDB tables and files
190613 16:40:06 [01] Copying ./mysql/db.opt to /server/backup/2019-06-13_16-40-00/mysql/db.opt
190613 16:40:06 [01]        ...done
190613 16:40:07 [01] Copying ./test01/user_info.frm to /server/backup/2019-06-13_16-40-00/test01/user_info.frm
190613 16:40:07 [01]        ...done
190613 16:40:07 [01] Copying ./small_flow/db.opt to /server/backup/2019-06-13_16-40-00/small_flow/db.opt
190613 16:40:07 [01]        ...done
190613 16:40:07 Finished backing up non-InnoDB tables and files
190613 16:40:07 [00] Writing /server/backup/2019-06-13_16-40-00/xtrabackup_binlog_info
190613 16:40:07 [00]        ...done
190613 16:40:07 Executing FLUSH NO_WRITE_TO_BINLOG ENGINE LOGS...
xtrabackup: The latest check point (for incremental): '165695722'
xtrabackup: Stopping log copying thread.
.190613 16:40:07 >> log scanned up to (165695731)
190613 16:40:07 Executing UNLOCK TABLES
190613 16:40:07 All tables unlocked
190613 16:40:07 [00] Copying ib_buffer_pool to /server/backup/2019-06-13_16-40-00/ib_buffer_pool
190613 16:40:07 [00]        ...done
190613 16:40:07 Backup created in directory '/server/backup/2019-06-13_16-40-00/'
MySQL binlog position: filename 'mysql-bin.000014', position '7116'
190613 16:40:07 [00] Writing /server/backup/2019-06-13_16-40-00/backup-my.cnf
190613 16:40:07 [00]        ...done
190613 16:40:07 [00] Writing /server/backup/2019-06-13_16-40-00/xtrabackup_info
190613 16:40:07 [00]        ...done
xtrabackup: Transaction log of lsn (165695722) to (165695731) was copied.
190613 16:40:07 completed OK!
原文地址:https://www.cnblogs.com/DBABlog/p/12926894.html