Mysql 数据库备份工具 xtrabackup
1、安装测试数据库mysql5.7
详细步骤
yum install -y gcc gcc-c++ cmake bison ncurses-devel
tar xf mysql-boost-5.7..tar.gz
cd mysql-5.7./ cmake \
-DCMAKE_INSTALL_PREFIX=/data/mysql5.7.22 \
-DSYSCONFDIR=/etc/my.cnf \
-DMYSQL_DATADIR=/data/mysql/data \
-DWITH_INNOBASE_STORAGE_ENGINE= \
-DMYSQL_TCP_PORT= \
-DEFAULT_CHARSET=utf8 \
-DWITH_ARCHIVE_STORAGE_ENGINE= \
-DWITH_BLACKHOLE_STORAGE_ENGINE= \
-DWITH_PERFSCHEMA_STORAGE_ENGINE= \
-DWITH_PARTITION_STORAGE_ENGINE= \
-DEFAULT_COLLATION=utf8_general_ci \
-DMYSQL_UNIX_ADDR=/tmp/mysql.sock \
-DWITH_BOOST=./boost
#-DWITH_SYSTEMD= [root@test02 mysql-5.7.]# make -j
[root@test02 mysql-5.7.]# make install
[root@test02 mysql-5.7.]# ln -s /data/mysql5.7.22/ /data/mysql
[root@test02 mysql-5.7.]# useradd -M -s /sbin/nologin mysql [root@test02 mysql]# cp /server/tools/mysql-5.7./packaging/rpm-common/my.cnf /etc [mysqld]
basedir=/data/mysql
datadir=/data/mysql/data
socket=/tmp/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links= log-error=/var/log/mysqld.log
#pid-file=/var/run/mysqld/mysqld.pid [mysql]
socket=/tmp/mysql.sock [root@test02 mysql-5.7.]# cd /data/mysql/
[root@test02 mysql]# ./bin/mysqld --initialize --basedir=/data/mysql/ --datadir=/data/mysql/data --user=mysql [root@test02 mysql]# cp /server/tools/mysql-5.7./support-files/mysql.server /etc/init.d/mysqld
[root@test02 mysql]# chmod +x /etc/init.d/mysqld
[root@test02 mysql]# ln -s /data/mysql/bin/mysql /usr/bin/ [root@test02 mysql]# grep 'temporary password' /var/log/mysqld.log
--01T09::.852922Z [Note] A temporary password is generated for root@localhost: ZxH,(-_wz09o mysql> update mysql.user set authentication_string = password("") where user="root"
-> ;
ERROR (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql>
mysql>
mysql> SET PASSWORD = PASSWORD('');
Query OK, rows affected, warning (0.00 sec) mysql> ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;
Query OK, rows affected (0.00 sec) mysql> flush privileges;
Query OK, rows affected (0.00 sec)
准备测试数据
mysql> create database ops;
Query OK, row affected (0.00 sec) mysql> use ops;
Database changed
mysql> create table test (id int() not null auto_increment,name char() not null,primary key (id));
Query OK, rows affected (0.03 sec) mysql> insert into test(id,name) values(,'martin');
Query OK, row affected (0.02 sec) mysql> insert into test(id,name) values(,'jacky');
Query OK, row affected (0.01 sec) mysql> insert into test(id,name) values(,'marry');
Query OK, row affected (0.01 sec) mysql> select * from test;
+----+--------+
| id | name |
+----+--------+
| | martin |
| | jacky |
| | marry |
+----+--------+
rows in set (0.00 sec)
xtrabackup工具介绍
yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm -y
[root@lnmp01 mysql]# yum install percona-xtrabackup-24 #安装工具
通过 innobackupex 备份数据库连接到服务: innobackupex 或者 xtrabackup 通过--user和--password 连接到数据库服务,--defaults-file 指定 mysql 配置文件目录
备份数据 [root@lnmp01 mysql]# innobackupex --defaults-file=/etc/my.cnf --user=root --password= --socket=/tmp/mysql.sock /mnt/
:: 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!". :: version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;mysql_socket=/tmp/mysql.sock' as 'root' (using password: YES).
:: version_check Connected to MySQL server
:: version_check Executing a version check against the server...
:: version_check Done.
:: Connecting to MySQL server host: localhost, user: root, password: set, port: not set, socket: /tmp/mysql.sock
Using server version 5.7.
innobackupex version 2.4. based on MySQL server 5.7. Linux (x86_64) (revision id: b4e0db5)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /data/mysql/data
xtrabackup: open files limit requested , set to
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 =
xtrabackup: innodb_log_file_size =
InnoDB: Number of pools:
:: >> log scanned up to ()
xtrabackup: Generating a list of tablespaces
InnoDB: Allocated tablespace ID for ops/test, old maximum was
:: [] Copying ./ibdata1 to /mnt/--02_09--/ibdata1
:: [] ...done
:: [] Copying ./ops/test.ibd to /mnt/--02_09--/ops/test.ibd
:: [] ...done
:: [] Copying ./mysql/servers.ibd to /mnt/--02_09--/mysql/servers.ibd
:: [] ...done
:: [] Copying ./mysql/innodb_index_stats.ibd to /mnt/--02_09--/mysql/innodb_index_stats.ibd
:: [] ...done
:: [] Copying ./mysql/time_zone.ibd to /mnt/--02_09--/mysql/time_zone.ibd
:: [] ...done
:: [] Copying ./mysql/time_zone_transition_type.ibd to /mnt/--02_09--/mysql/time_zone_transition_type.ibd
:: [] ...done
:: [] Copying ./mysql/slave_worker_info.ibd to /mnt/--02_09--/mysql/slave_worker_info.ibd
:: [] ...done
:: [] Copying ./mysql/help_keyword.ibd to /mnt/--02_09--/mysql/help_keyword.ibd
:: [] ...done
:: [] Copying ./mysql/server_cost.ibd to /mnt/--02_09--/mysql/server_cost.ibd
:: [] ...done
:: [] Copying ./mysql/help_topic.ibd to /mnt/--02_09--/mysql/help_topic.ibd
:: [] ...done
:: [] Copying ./mysql/time_zone_leap_second.ibd to /mnt/--02_09--/mysql/time_zone_leap_second.ibd
:: [] ...done
:: [] Copying ./mysql/slave_master_info.ibd to /mnt/--02_09--/mysql/slave_master_info.ibd
:: [] ...done
:: [] Copying ./mysql/help_category.ibd to /mnt/--02_09--/mysql/help_category.ibd
:: [] ...done
:: [] Copying ./mysql/time_zone_transition.ibd to /mnt/--02_09--/mysql/time_zone_transition.ibd
:: [] ...done
:: [] Copying ./mysql/gtid_executed.ibd to /mnt/--02_09--/mysql/gtid_executed.ibd
:: [] ...done
:: [] Copying ./mysql/slave_relay_log_info.ibd to /mnt/--02_09--/mysql/slave_relay_log_info.ibd
:: [] ...done
:: [] Copying ./mysql/innodb_table_stats.ibd to /mnt/--02_09--/mysql/innodb_table_stats.ibd
:: [] ...done
:: [] Copying ./mysql/help_relation.ibd to /mnt/--02_09--/mysql/help_relation.ibd
:: [] ...done
:: [] Copying ./mysql/engine_cost.ibd to /mnt/--02_09--/mysql/engine_cost.ibd
:: [] ...done
:: [] Copying ./mysql/plugin.ibd to /mnt/--02_09--/mysql/plugin.ibd
:: [] ...done
:: [] Copying ./mysql/time_zone_name.ibd to /mnt/--02_09--/mysql/time_zone_name.ibd
:: [] ...done
:: [] Copying ./sys/sys_config.ibd to /mnt/--02_09--/sys/sys_config.ibd
:: [] ...done
:: >> log scanned up to ()
:: Executing FLUSH NO_WRITE_TO_BINLOG TABLES... #对于非inonodb引擎的会执行锁表操作
:: Executing FLUSH TABLES WITH READ LOCK...
:: Starting to backup non-InnoDB tables and files
:: [] Copying ./ops/db.opt to /mnt/--02_09--/ops/db.opt
:: [] ...done
:: [] Copying ./ops/test.frm to /mnt/--02_09--/ops/test.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_connection_configuration.frm to /mnt/--02_09--/performance_schema/replication_connection_configuration.frm
:: [] ...done
:: [] Copying ./performance_schema/socket_summary_by_instance.frm to /mnt/--02_09--/performance_schema/socket_summary_by_instance.frm
:: [] ...done
:: [] Copying ./performance_schema/file_summary_by_event_name.frm to /mnt/--02_09--/performance_schema/file_summary_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/users.frm to /mnt/--02_09--/performance_schema/users.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_by_user_by_event_name.frm to /mnt/--02_09--/performance_schema/events_waits_summary_by_user_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/status_by_user.frm to /mnt/--02_09--/performance_schema/status_by_user.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_digest.frm to /mnt/--02_09--/performance_schema/events_statements_summary_by_digest.frm
:: [] ...done
:: [] Copying ./performance_schema/user_variables_by_thread.frm to /mnt/--02_09--/performance_schema/user_variables_by_thread.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_global_by_event_name.frm to /mnt/--02_09--/performance_schema/events_statements_summary_global_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/setup_timers.frm to /mnt/--02_09--/performance_schema/setup_timers.frm
:: [] ...done
:: [] Copying ./performance_schema/table_handles.frm to /mnt/--02_09--/performance_schema/table_handles.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_history_long.frm to /mnt/--02_09--/performance_schema/events_statements_history_long.frm
:: [] ...done
:: [] Copying ./performance_schema/global_variables.frm to /mnt/--02_09--/performance_schema/global_variables.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_applier_status.frm to /mnt/--02_09--/performance_schema/replication_applier_status.frm
:: [] ...done
:: [] Copying ./performance_schema/session_account_connect_attrs.frm to /mnt/--02_09--/performance_schema/session_account_connect_attrs.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_applier_configuration.frm to /mnt/--02_09--/performance_schema/replication_applier_configuration.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_history.frm to /mnt/--02_09--/performance_schema/events_statements_history.frm
:: [] ...done
:: [] Copying ./performance_schema/table_lock_waits_summary_by_table.frm to /mnt/--02_09--/performance_schema/table_lock_waits_summary_by_table.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_history.frm to /mnt/--02_09--/performance_schema/events_transactions_history.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_group_members.frm to /mnt/--02_09--/performance_schema/replication_group_members.frm
:: [] ...done
:: [] Copying ./performance_schema/table_io_waits_summary_by_table.frm to /mnt/--02_09--/performance_schema/table_io_waits_summary_by_table.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_thread_by_event_name.frm to /mnt/--02_09--/performance_schema/events_statements_summary_by_thread_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/memory_summary_global_by_event_name.frm to /mnt/--02_09--/performance_schema/memory_summary_global_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/db.opt to /mnt/--02_09--/performance_schema/db.opt
:: [] ...done
:: [] Copying ./performance_schema/mutex_instances.frm to /mnt/--02_09--/performance_schema/mutex_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_summary_by_user_by_event_name.frm to /mnt/--02_09--/performance_schema/events_transactions_summary_by_user_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/session_connect_attrs.frm to /mnt/--02_09--/performance_schema/session_connect_attrs.frm
:: [] ...done
:: [] Copying ./performance_schema/session_variables.frm to /mnt/--02_09--/performance_schema/session_variables.frm
:: [] ...done
:: [] Copying ./performance_schema/status_by_host.frm to /mnt/--02_09--/performance_schema/status_by_host.frm
:: [] ...done
:: [] Copying ./performance_schema/status_by_account.frm to /mnt/--02_09--/performance_schema/status_by_account.frm
:: [] ...done
:: [] Copying ./performance_schema/setup_instruments.frm to /mnt/--02_09--/performance_schema/setup_instruments.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_summary_by_host_by_event_name.frm to /mnt/--02_09--/performance_schema/events_transactions_summary_by_host_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_applier_status_by_coordinator.frm to /mnt/--02_09--/performance_schema/replication_applier_status_by_coordinator.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_summary_by_thread_by_event_name.frm to /mnt/--02_09--/performance_schema/events_stages_summary_by_thread_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/objects_summary_global_by_type.frm to /mnt/--02_09--/performance_schema/objects_summary_global_by_type.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_history_long.frm to /mnt/--02_09--/performance_schema/events_transactions_history_long.frm
:: [] ...done
:: [] Copying ./performance_schema/setup_objects.frm to /mnt/--02_09--/performance_schema/setup_objects.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_connection_status.frm to /mnt/--02_09--/performance_schema/replication_connection_status.frm
:: [] ...done
:: >> log scanned up to ()
:: [] Copying ./performance_schema/memory_summary_by_user_by_event_name.frm to /mnt/--02_09--/performance_schema/memory_summary_by_user_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_program.frm to /mnt/--02_09--/performance_schema/events_statements_summary_by_program.frm
:: [] ...done
:: [] Copying ./performance_schema/file_instances.frm to /mnt/--02_09--/performance_schema/file_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/hosts.frm to /mnt/--02_09--/performance_schema/hosts.frm
:: [] ...done
:: [] Copying ./performance_schema/setup_consumers.frm to /mnt/--02_09--/performance_schema/setup_consumers.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_group_member_stats.frm to /mnt/--02_09--/performance_schema/replication_group_member_stats.frm
:: [] ...done
:: [] Copying ./performance_schema/prepared_statements_instances.frm to /mnt/--02_09--/performance_schema/prepared_statements_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_host_by_event_name.frm to /mnt/--02_09--/performance_schema/events_statements_summary_by_host_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_by_account_by_event_name.frm to /mnt/--02_09--/performance_schema/events_waits_summary_by_account_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/variables_by_thread.frm to /mnt/--02_09--/performance_schema/variables_by_thread.frm
:: [] ...done
:: [] Copying ./performance_schema/memory_summary_by_host_by_event_name.frm to /mnt/--02_09--/performance_schema/memory_summary_by_host_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_summary_by_account_by_event_name.frm to /mnt/--02_09--/performance_schema/events_transactions_summary_by_account_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_applier_status_by_worker.frm to /mnt/--02_09--/performance_schema/replication_applier_status_by_worker.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_by_thread_by_event_name.frm to /mnt/--02_09--/performance_schema/events_waits_summary_by_thread_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_current.frm to /mnt/--02_09--/performance_schema/events_waits_current.frm
:: [] ...done
:: [] Copying ./performance_schema/accounts.frm to /mnt/--02_09--/performance_schema/accounts.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_summary_by_thread_by_event_name.frm to /mnt/--02_09--/performance_schema/events_transactions_summary_by_thread_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/table_io_waits_summary_by_index_usage.frm to /mnt/--02_09--/performance_schema/table_io_waits_summary_by_index_usage.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_account_by_event_name.frm to /mnt/--02_09--/performance_schema/events_statements_summary_by_account_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_current.frm to /mnt/--02_09--/performance_schema/events_transactions_current.frm
:: [] ...done
:: [] Copying ./performance_schema/metadata_locks.frm to /mnt/--02_09--/performance_schema/metadata_locks.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_current.frm to /mnt/--02_09--/performance_schema/events_statements_current.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_summary_by_host_by_event_name.frm to /mnt/--02_09--/performance_schema/events_stages_summary_by_host_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/socket_instances.frm to /mnt/--02_09--/performance_schema/socket_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_history_long.frm to /mnt/--02_09--/performance_schema/events_stages_history_long.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_user_by_event_name.frm to /mnt/--02_09--/performance_schema/events_statements_summary_by_user_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/socket_summary_by_event_name.frm to /mnt/--02_09--/performance_schema/socket_summary_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/setup_actors.frm to /mnt/--02_09--/performance_schema/setup_actors.frm
:: [] ...done
:: [] Copying ./performance_schema/rwlock_instances.frm to /mnt/--02_09--/performance_schema/rwlock_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/host_cache.frm to /mnt/--02_09--/performance_schema/host_cache.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_current.frm to /mnt/--02_09--/performance_schema/events_stages_current.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_summary_global_by_event_name.frm to /mnt/--02_09--/performance_schema/events_transactions_summary_global_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/status_by_thread.frm to /mnt/--02_09--/performance_schema/status_by_thread.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_history.frm to /mnt/--02_09--/performance_schema/events_stages_history.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_summary_global_by_event_name.frm to /mnt/--02_09--/performance_schema/events_stages_summary_global_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/performance_timers.frm to /mnt/--02_09--/performance_schema/performance_timers.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_history_long.frm to /mnt/--02_09--/performance_schema/events_waits_history_long.frm
:: [] ...done
:: [] Copying ./performance_schema/file_summary_by_instance.frm to /mnt/--02_09--/performance_schema/file_summary_by_instance.frm
:: [] ...done
:: [] Copying ./performance_schema/memory_summary_by_account_by_event_name.frm to /mnt/--02_09--/performance_schema/memory_summary_by_account_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/memory_summary_by_thread_by_event_name.frm to /mnt/--02_09--/performance_schema/memory_summary_by_thread_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/cond_instances.frm to /mnt/--02_09--/performance_schema/cond_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_global_by_event_name.frm to /mnt/--02_09--/performance_schema/events_waits_summary_global_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_by_host_by_event_name.frm to /mnt/--02_09--/performance_schema/events_waits_summary_by_host_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_by_instance.frm to /mnt/--02_09--/performance_schema/events_waits_summary_by_instance.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_summary_by_user_by_event_name.frm to /mnt/--02_09--/performance_schema/events_stages_summary_by_user_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_history.frm to /mnt/--02_09--/performance_schema/events_waits_history.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_summary_by_account_by_event_name.frm to /mnt/--02_09--/performance_schema/events_stages_summary_by_account_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/threads.frm to /mnt/--02_09--/performance_schema/threads.frm
:: [] ...done
:: [] Copying ./performance_schema/session_status.frm to /mnt/--02_09--/performance_schema/session_status.frm
:: [] ...done
:: [] Copying ./performance_schema/global_status.frm to /mnt/--02_09--/performance_schema/global_status.frm
:: [] ...done
:: [] Copying ./mysql/slave_master_info.frm to /mnt/--02_09--/mysql/slave_master_info.frm
:: [] ...done
:: [] Copying ./mysql/procs_priv.frm to /mnt/--02_09--/mysql/procs_priv.frm
:: [] ...done
:: [] Copying ./mysql/columns_priv.MYD to /mnt/--02_09--/mysql/columns_priv.MYD
:: [] ...done
:: [] Copying ./mysql/slow_log.CSV to /mnt/--02_09--/mysql/slow_log.CSV
:: [] ...done
:: [] Copying ./mysql/general_log.CSV to /mnt/--02_09--/mysql/general_log.CSV
:: [] ...done
:: [] Copying ./mysql/db.MYI to /mnt/--02_09--/mysql/db.MYI
:: [] ...done
:: [] Copying ./mysql/proc.frm to /mnt/--02_09--/mysql/proc.frm
:: [] ...done
:: [] Copying ./mysql/ndb_binlog_index.MYI to /mnt/--02_09--/mysql/ndb_binlog_index.MYI
:: [] ...done
:: [] Copying ./mysql/help_relation.frm to /mnt/--02_09--/mysql/help_relation.frm
:: [] ...done
:: [] Copying ./mysql/db.MYD to /mnt/--02_09--/mysql/db.MYD
:: [] ...done
:: [] Copying ./mysql/help_topic.frm to /mnt/--02_09--/mysql/help_topic.frm
:: [] ...done
:: [] Copying ./mysql/func.MYD to /mnt/--02_09--/mysql/func.MYD
:: [] ...done
:: [] Copying ./mysql/columns_priv.frm to /mnt/--02_09--/mysql/columns_priv.frm
:: [] ...done
:: [] Copying ./mysql/proxies_priv.MYD to /mnt/--02_09--/mysql/proxies_priv.MYD
:: [] ...done
:: [] Copying ./mysql/tables_priv.MYI to /mnt/--02_09--/mysql/tables_priv.MYI
:: [] ...done
:: [] Copying ./mysql/time_zone_transition.frm to /mnt/--02_09--/mysql/time_zone_transition.frm
:: [] ...done
:: [] Copying ./mysql/time_zone_leap_second.frm to /mnt/--02_09--/mysql/time_zone_leap_second.frm
:: [] ...done
:: [] Copying ./mysql/help_category.frm to /mnt/--02_09--/mysql/help_category.frm
:: [] ...done
:: [] Copying ./mysql/db.opt to /mnt/--02_09--/mysql/db.opt
:: [] ...done
:: [] Copying ./mysql/event.MYI to /mnt/--02_09--/mysql/event.MYI
:: [] ...done
:: [] Copying ./mysql/procs_priv.MYD to /mnt/--02_09--/mysql/procs_priv.MYD
:: [] ...done
:: [] Copying ./mysql/servers.frm to /mnt/--02_09--/mysql/servers.frm
:: [] ...done
:: [] Copying ./mysql/ndb_binlog_index.MYD to /mnt/--02_09--/mysql/ndb_binlog_index.MYD
:: [] ...done
:: [] Copying ./mysql/tables_priv.MYD to /mnt/--02_09--/mysql/tables_priv.MYD
:: [] ...done
:: [] Copying ./mysql/innodb_index_stats.frm to /mnt/--02_09--/mysql/innodb_index_stats.frm
:: [] ...done
:: [] Copying ./mysql/general_log.CSM to /mnt/--02_09--/mysql/general_log.CSM
:: [] ...done
:: [] Copying ./mysql/proxies_priv.MYI to /mnt/--02_09--/mysql/proxies_priv.MYI
:: [] ...done
:: >> log scanned up to ()
:: [] Copying ./mysql/proc.MYD to /mnt/--02_09--/mysql/proc.MYD
:: [] ...done
:: [] Copying ./mysql/proc.MYI to /mnt/--02_09--/mysql/proc.MYI
:: [] ...done
:: [] Copying ./mysql/time_zone_transition_type.frm to /mnt/--02_09--/mysql/time_zone_transition_type.frm
:: [] ...done
:: [] Copying ./mysql/proxies_priv.frm to /mnt/--02_09--/mysql/proxies_priv.frm
:: [] ...done
:: [] Copying ./mysql/procs_priv.MYI to /mnt/--02_09--/mysql/procs_priv.MYI
:: [] ...done
:: [] Copying ./mysql/slave_worker_info.frm to /mnt/--02_09--/mysql/slave_worker_info.frm
:: [] ...done
:: [] Copying ./mysql/slave_relay_log_info.frm to /mnt/--02_09--/mysql/slave_relay_log_info.frm
:: [] ...done
:: [] Copying ./mysql/columns_priv.MYI to /mnt/--02_09--/mysql/columns_priv.MYI
:: [] ...done
:: [] Copying ./mysql/func.MYI to /mnt/--02_09--/mysql/func.MYI
:: [] ...done
:: [] Copying ./mysql/db.frm to /mnt/--02_09--/mysql/db.frm
:: [] ...done
:: [] Copying ./mysql/tables_priv.frm to /mnt/--02_09--/mysql/tables_priv.frm
:: [] ...done
:: [] Copying ./mysql/time_zone_name.frm to /mnt/--02_09--/mysql/time_zone_name.frm
:: [] ...done
:: [] Copying ./mysql/plugin.frm to /mnt/--02_09--/mysql/plugin.frm
:: [] ...done
:: [] Copying ./mysql/user.MYD to /mnt/--02_09--/mysql/user.MYD
:: [] ...done
:: [] Copying ./mysql/slow_log.frm to /mnt/--02_09--/mysql/slow_log.frm
:: [] ...done
:: [] Copying ./mysql/func.frm to /mnt/--02_09--/mysql/func.frm
:: [] ...done
:: [] Copying ./mysql/event.frm to /mnt/--02_09--/mysql/event.frm
:: [] ...done
:: [] Copying ./mysql/innodb_table_stats.frm to /mnt/--02_09--/mysql/innodb_table_stats.frm
:: [] ...done
:: [] Copying ./mysql/user.MYI to /mnt/--02_09--/mysql/user.MYI
:: [] ...done
:: [] Copying ./mysql/event.MYD to /mnt/--02_09--/mysql/event.MYD
:: [] ...done
:: [] Copying ./mysql/server_cost.frm to /mnt/--02_09--/mysql/server_cost.frm
:: [] ...done
:: [] Copying ./mysql/slow_log.CSM to /mnt/--02_09--/mysql/slow_log.CSM
:: [] ...done
:: [] Copying ./mysql/gtid_executed.frm to /mnt/--02_09--/mysql/gtid_executed.frm
:: [] ...done
:: [] Copying ./mysql/engine_cost.frm to /mnt/--02_09--/mysql/engine_cost.frm
:: [] ...done
:: [] Copying ./mysql/help_keyword.frm to /mnt/--02_09--/mysql/help_keyword.frm
:: [] ...done
:: [] Copying ./mysql/user.frm to /mnt/--02_09--/mysql/user.frm
:: [] ...done
:: [] Copying ./mysql/time_zone.frm to /mnt/--02_09--/mysql/time_zone.frm
:: [] ...done
:: [] Copying ./mysql/ndb_binlog_index.frm to /mnt/--02_09--/mysql/ndb_binlog_index.frm
:: [] ...done
:: [] Copying ./mysql/general_log.frm to /mnt/--02_09--/mysql/general_log.frm
:: [] ...done
:: [] Copying ./sys/session_ssl_status.frm to /mnt/--02_09--/sys/session_ssl_status.frm
:: [] ...done
:: [] Copying ./sys/schema_object_overview.frm to /mnt/--02_09--/sys/schema_object_overview.frm
:: [] ...done
:: [] Copying ./sys/statements_with_temp_tables.frm to /mnt/--02_09--/sys/statements_with_temp_tables.frm
:: [] ...done
:: [] Copying ./sys/schema_auto_increment_columns.frm to /mnt/--02_09--/sys/schema_auto_increment_columns.frm
:: [] ...done
:: [] Copying ./sys/x@0024ps_digest_95th_percentile_by_avg_us.frm to /mnt/--02_09--/sys/x@0024ps_digest_95th_percentile_by_avg_us.frm
:: [] ...done
:: [] Copying ./sys/schema_table_statistics.frm to /mnt/--02_09--/sys/schema_table_statistics.frm
:: [] ...done
:: [] Copying ./sys/processlist.frm to /mnt/--02_09--/sys/processlist.frm
:: [] ...done
:: [] Copying ./sys/memory_global_by_current_bytes.frm to /mnt/--02_09--/sys/memory_global_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024host_summary_by_file_io.frm to /mnt/--02_09--/sys/x@0024host_summary_by_file_io.frm
:: [] ...done
:: [] Copying ./sys/user_summary_by_statement_latency.frm to /mnt/--02_09--/sys/user_summary_by_statement_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024statement_analysis.frm to /mnt/--02_09--/sys/x@0024statement_analysis.frm
:: [] ...done
:: [] Copying ./sys/io_by_thread_by_latency.frm to /mnt/--02_09--/sys/io_by_thread_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary.frm to /mnt/--02_09--/sys/x@0024user_summary.frm
:: [] ...done
:: [] Copying ./sys/io_global_by_wait_by_latency.frm to /mnt/--02_09--/sys/io_global_by_wait_by_latency.frm
:: [] ...done
:: [] Copying ./sys/metrics.frm to /mnt/--02_09--/sys/metrics.frm
:: [] ...done
:: [] Copying ./sys/x@0024innodb_lock_waits.frm to /mnt/--02_09--/sys/x@0024innodb_lock_waits.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_table_lock_waits.frm to /mnt/--02_09--/sys/x@0024schema_table_lock_waits.frm
:: [] ...done
:: [] Copying ./sys/sys_config_insert_set_user.TRN to /mnt/--02_09--/sys/sys_config_insert_set_user.TRN
:: [] ...done
:: [] Copying ./sys/x@0024memory_global_by_current_bytes.frm to /mnt/--02_09--/sys/x@0024memory_global_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024latest_file_io.frm to /mnt/--02_09--/sys/x@0024latest_file_io.frm
:: [] ...done
:: [] Copying ./sys/version.frm to /mnt/--02_09--/sys/version.frm
:: [] ...done
:: [] Copying ./sys/sys_config.TRG to /mnt/--02_09--/sys/sys_config.TRG
:: [] ...done
:: [] Copying ./sys/x@0024memory_by_host_by_current_bytes.frm to /mnt/--02_09--/sys/x@0024memory_by_host_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024waits_global_by_latency.frm to /mnt/--02_09--/sys/x@0024waits_global_by_latency.frm
:: [] ...done
:: [] Copying ./sys/host_summary_by_stages.frm to /mnt/--02_09--/sys/host_summary_by_stages.frm
:: [] ...done
:: [] Copying ./sys/x@0024wait_classes_global_by_avg_latency.frm to /mnt/--02_09--/sys/x@0024wait_classes_global_by_avg_latency.frm
:: [] ...done
:: [] Copying ./sys/db.opt to /mnt/--02_09--/sys/db.opt
:: [] ...done
:: [] Copying ./sys/waits_by_user_by_latency.frm to /mnt/--02_09--/sys/waits_by_user_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024statements_with_sorting.frm to /mnt/--02_09--/sys/x@0024statements_with_sorting.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary_by_file_io_type.frm to /mnt/--02_09--/sys/x@0024user_summary_by_file_io_type.frm
:: [] ...done
:: [] Copying ./sys/host_summary_by_file_io_type.frm to /mnt/--02_09--/sys/host_summary_by_file_io_type.frm
:: [] ...done
:: [] Copying ./sys/x@0024io_global_by_file_by_bytes.frm to /mnt/--02_09--/sys/x@0024io_global_by_file_by_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024statements_with_full_table_scans.frm to /mnt/--02_09--/sys/x@0024statements_with_full_table_scans.frm
:: [] ...done
:: [] Copying ./sys/statements_with_full_table_scans.frm to /mnt/--02_09--/sys/statements_with_full_table_scans.frm
:: [] ...done
:: [] Copying ./sys/x@0024host_summary_by_stages.frm to /mnt/--02_09--/sys/x@0024host_summary_by_stages.frm
:: [] ...done
:: [] Copying ./sys/x@0024host_summary_by_file_io_type.frm to /mnt/--02_09--/sys/x@0024host_summary_by_file_io_type.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_index_statistics.frm to /mnt/--02_09--/sys/x@0024schema_index_statistics.frm
:: [] ...done
:: [] Copying ./sys/waits_by_host_by_latency.frm to /mnt/--02_09--/sys/waits_by_host_by_latency.frm
:: [] ...done
:: [] Copying ./sys/schema_table_lock_waits.frm to /mnt/--02_09--/sys/schema_table_lock_waits.frm
:: [] ...done
:: [] Copying ./sys/innodb_buffer_stats_by_schema.frm to /mnt/--02_09--/sys/innodb_buffer_stats_by_schema.frm
:: [] ...done
:: [] Copying ./sys/host_summary_by_file_io.frm to /mnt/--02_09--/sys/host_summary_by_file_io.frm
:: [] ...done
:: [] Copying ./sys/user_summary_by_statement_type.frm to /mnt/--02_09--/sys/user_summary_by_statement_type.frm
:: [] ...done
:: [] Copying ./sys/x@0024ps_digest_avg_latency_distribution.frm to /mnt/--02_09--/sys/x@0024ps_digest_avg_latency_distribution.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary_by_stages.frm to /mnt/--02_09--/sys/x@0024user_summary_by_stages.frm
:: [] ...done
:: [] Copying ./sys/x@0024statements_with_errors_or_warnings.frm to /mnt/--02_09--/sys/x@0024statements_with_errors_or_warnings.frm
:: [] ...done
:: [] Copying ./sys/x@0024memory_by_user_by_current_bytes.frm to /mnt/--02_09--/sys/x@0024memory_by_user_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024statements_with_temp_tables.frm to /mnt/--02_09--/sys/x@0024statements_with_temp_tables.frm
:: [] ...done
:: [] Copying ./sys/host_summary_by_statement_type.frm to /mnt/--02_09--/sys/host_summary_by_statement_type.frm
:: [] ...done
:: >> log scanned up to ()
:: [] Copying ./sys/x@0024host_summary_by_statement_latency.frm to /mnt/--02_09--/sys/x@0024host_summary_by_statement_latency.frm
:: [] ...done
:: [] Copying ./sys/wait_classes_global_by_avg_latency.frm to /mnt/--02_09--/sys/wait_classes_global_by_avg_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024memory_by_thread_by_current_bytes.frm to /mnt/--02_09--/sys/x@0024memory_by_thread_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/io_global_by_file_by_bytes.frm to /mnt/--02_09--/sys/io_global_by_file_by_bytes.frm
:: [] ...done
:: [] Copying ./sys/statements_with_sorting.frm to /mnt/--02_09--/sys/statements_with_sorting.frm
:: [] ...done
:: [] Copying ./sys/session.frm to /mnt/--02_09--/sys/session.frm
:: [] ...done
:: [] Copying ./sys/user_summary.frm to /mnt/--02_09--/sys/user_summary.frm
:: [] ...done
:: [] Copying ./sys/schema_index_statistics.frm to /mnt/--02_09--/sys/schema_index_statistics.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary_by_statement_latency.frm to /mnt/--02_09--/sys/x@0024user_summary_by_statement_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024host_summary.frm to /mnt/--02_09--/sys/x@0024host_summary.frm
:: [] ...done
:: [] Copying ./sys/statement_analysis.frm to /mnt/--02_09--/sys/statement_analysis.frm
:: [] ...done
:: [] Copying ./sys/x@0024io_global_by_wait_by_bytes.frm to /mnt/--02_09--/sys/x@0024io_global_by_wait_by_bytes.frm
:: [] ...done
:: [] Copying ./sys/io_global_by_wait_by_bytes.frm to /mnt/--02_09--/sys/io_global_by_wait_by_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024innodb_buffer_stats_by_schema.frm to /mnt/--02_09--/sys/x@0024innodb_buffer_stats_by_schema.frm
:: [] ...done
:: [] Copying ./sys/x@0024io_global_by_wait_by_latency.frm to /mnt/--02_09--/sys/x@0024io_global_by_wait_by_latency.frm
:: [] ...done
:: [] Copying ./sys/io_global_by_file_by_latency.frm to /mnt/--02_09--/sys/io_global_by_file_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_tables_with_full_table_scans.frm to /mnt/--02_09--/sys/x@0024schema_tables_with_full_table_scans.frm
:: [] ...done
:: [] Copying ./sys/wait_classes_global_by_latency.frm to /mnt/--02_09--/sys/wait_classes_global_by_latency.frm
:: [] ...done
:: [] Copying ./sys/memory_by_host_by_current_bytes.frm to /mnt/--02_09--/sys/memory_by_host_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/schema_unused_indexes.frm to /mnt/--02_09--/sys/schema_unused_indexes.frm
:: [] ...done
:: [] Copying ./sys/innodb_buffer_stats_by_table.frm to /mnt/--02_09--/sys/innodb_buffer_stats_by_table.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_flattened_keys.frm to /mnt/--02_09--/sys/x@0024schema_flattened_keys.frm
:: [] ...done
:: [] Copying ./sys/latest_file_io.frm to /mnt/--02_09--/sys/latest_file_io.frm
:: [] ...done
:: [] Copying ./sys/x@0024io_by_thread_by_latency.frm to /mnt/--02_09--/sys/x@0024io_by_thread_by_latency.frm
:: [] ...done
:: [] Copying ./sys/host_summary.frm to /mnt/--02_09--/sys/host_summary.frm
:: [] ...done
:: [] Copying ./sys/schema_table_statistics_with_buffer.frm to /mnt/--02_09--/sys/schema_table_statistics_with_buffer.frm
:: [] ...done
:: [] Copying ./sys/memory_by_thread_by_current_bytes.frm to /mnt/--02_09--/sys/memory_by_thread_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/statements_with_errors_or_warnings.frm to /mnt/--02_09--/sys/statements_with_errors_or_warnings.frm
:: [] ...done
:: [] Copying ./sys/x@0024waits_by_host_by_latency.frm to /mnt/--02_09--/sys/x@0024waits_by_host_by_latency.frm
:: [] ...done
:: [] Copying ./sys/schema_redundant_indexes.frm to /mnt/--02_09--/sys/schema_redundant_indexes.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_table_statistics_with_buffer.frm to /mnt/--02_09--/sys/x@0024schema_table_statistics_with_buffer.frm
:: [] ...done
:: [] Copying ./sys/memory_global_total.frm to /mnt/--02_09--/sys/memory_global_total.frm
:: [] ...done
:: [] Copying ./sys/user_summary_by_file_io.frm to /mnt/--02_09--/sys/user_summary_by_file_io.frm
:: [] ...done
:: [] Copying ./sys/statements_with_runtimes_in_95th_percentile.frm to /mnt/--02_09--/sys/statements_with_runtimes_in_95th_percentile.frm
:: [] ...done
:: [] Copying ./sys/memory_by_user_by_current_bytes.frm to /mnt/--02_09--/sys/memory_by_user_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024ps_schema_table_statistics_io.frm to /mnt/--02_09--/sys/x@0024ps_schema_table_statistics_io.frm
:: [] ...done
:: [] Copying ./sys/innodb_lock_waits.frm to /mnt/--02_09--/sys/innodb_lock_waits.frm
:: [] ...done
:: [] Copying ./sys/x@0024session.frm to /mnt/--02_09--/sys/x@0024session.frm
:: [] ...done
:: [] Copying ./sys/sys_config_update_set_user.TRN to /mnt/--02_09--/sys/sys_config_update_set_user.TRN
:: [] ...done
:: [] Copying ./sys/x@0024memory_global_total.frm to /mnt/--02_09--/sys/x@0024memory_global_total.frm
:: [] ...done
:: [] Copying ./sys/ps_check_lost_instrumentation.frm to /mnt/--02_09--/sys/ps_check_lost_instrumentation.frm
:: [] ...done
:: [] Copying ./sys/user_summary_by_file_io_type.frm to /mnt/--02_09--/sys/user_summary_by_file_io_type.frm
:: [] ...done
:: [] Copying ./sys/host_summary_by_statement_latency.frm to /mnt/--02_09--/sys/host_summary_by_statement_latency.frm
:: [] ...done
:: [] Copying ./sys/sys_config.frm to /mnt/--02_09--/sys/sys_config.frm
:: [] ...done
:: [] Copying ./sys/user_summary_by_stages.frm to /mnt/--02_09--/sys/user_summary_by_stages.frm
:: [] ...done
:: [] Copying ./sys/x@0024statements_with_runtimes_in_95th_percentile.frm to /mnt/--02_09--/sys/x@0024statements_with_runtimes_in_95th_percentile.frm
:: [] ...done
:: [] Copying ./sys/x@0024io_global_by_file_by_latency.frm to /mnt/--02_09--/sys/x@0024io_global_by_file_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024wait_classes_global_by_latency.frm to /mnt/--02_09--/sys/x@0024wait_classes_global_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_table_statistics.frm to /mnt/--02_09--/sys/x@0024schema_table_statistics.frm
:: [] ...done
:: [] Copying ./sys/x@0024host_summary_by_statement_type.frm to /mnt/--02_09--/sys/x@0024host_summary_by_statement_type.frm
:: [] ...done
:: [] Copying ./sys/waits_global_by_latency.frm to /mnt/--02_09--/sys/waits_global_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024innodb_buffer_stats_by_table.frm to /mnt/--02_09--/sys/x@0024innodb_buffer_stats_by_table.frm
:: [] ...done
:: [] Copying ./sys/x@0024processlist.frm to /mnt/--02_09--/sys/x@0024processlist.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary_by_file_io.frm to /mnt/--02_09--/sys/x@0024user_summary_by_file_io.frm
:: [] ...done
:: [] Copying ./sys/schema_tables_with_full_table_scans.frm to /mnt/--02_09--/sys/schema_tables_with_full_table_scans.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary_by_statement_type.frm to /mnt/--02_09--/sys/x@0024user_summary_by_statement_type.frm
:: [] ...done
:: [] Copying ./sys/x@0024waits_by_user_by_latency.frm to /mnt/--02_09--/sys/x@0024waits_by_user_by_latency.frm
:: [] ...done
:: Finished backing up non-InnoDB tables and files
:: Executing FLUSH NO_WRITE_TO_BINLOG ENGINE LOGS...
xtrabackup: The latest check point (for incremental): ''
xtrabackup: Stopping log copying thread.
. :: >> log scanned up to () :: Executing UNLOCK TABLES #解锁操作
:: All tables unlocked
:: [] Copying ib_buffer_pool to /mnt/--02_09--/ib_buffer_pool
:: [] ...done
:: Backup created in directory '/mnt/2018-06-02_09-29-38/'
:: [] Writing /mnt/--02_09--/backup-my.cnf
:: [] ...done
:: [] Writing /mnt/--02_09--/xtrabackup_info
:: [] ...done
xtrabackup: Transaction log of lsn () to () was copied.
:: completed OK! #看到这个代表备份成功
看看生成的备份
[root@lnmp01 ~]# cd /mnt/--02_09--/
[root@lnmp01 --02_09--]# ll
total
-rw-r----- root root Jun : backup-my.cnf
-rw-r----- root root Jun : ib_buffer_pool
-rw-r----- root root Jun : ibdata1
drwxr-x--- root root Jun : mysql
drwxr-x--- root root Jun : ops
drwxr-x--- root root Jun : performance_schema
drwxr-x--- root root Jun : sys
-rw-r----- root root Jun : xtrabackup_checkpoints
-rw-r----- root root Jun : xtrabackup_info
-rw-r----- root root Jun : xtrabackup_logfile
[root@lnmp01 --02_09--]# cat backup-my.cnf
# This MySQL options file was generated by innobackupex. # The MySQL server
[mysqld]
innodb_checksum_algorithm=crc32
innodb_log_checksum_algorithm=strict_crc32
innodb_data_file_path=ibdata1:12M:autoextend
innodb_log_files_in_group=
innodb_log_file_size=
innodb_fast_checksum=false
innodb_page_size=
innodb_log_block_size=
innodb_undo_directory=./
innodb_undo_tablespaces=
server_id=
redo_log_version=
server_uuid=c6d9c875--11e8-bdb0-000c29959431
master_key_id=
[root@lnmp01 --02_09--]# cat xtrabackup_info
uuid = 6d4129b3--11e8-ae5e-000c29959431
name =
tool_name = innobackupex
tool_command = --defaults-file=/etc/my.cnf --user=root --password=... --socket=/tmp/mysql.sock /mnt/
tool_version = 2.4.
ibbackup_version = 2.4.
server_version = 5.7.
start_time = -- ::
end_time = -- ::
lock_time =
binlog_pos =
innodb_from_lsn =
innodb_to_lsn = 2572985 #序列号
partial = N
incremental = N
format = file
compact = N
compressed = N
encrypted = N
[root@lnmp01 --02_09--]# cat xtrabackup_checkpoints
backup_type = full-backuped #全备
from_lsn =
to_lsn =
last_lsn =
compact =
recover_binlog_info =
上面数据库备份好了,此时我们在数据库新增加数据,模拟数据实时写入
mysql> insert into test(id,name) values(,'marry99');
Query OK, row affected (0.09 sec) mysql> insert into test(id,name) values(,'jacky98');
Query OK, row affected (0.01 sec)
创建完备份之后的数据还不能马上用来还原, 需要回滚未提交事务,前滚提交事务,让数据库文件保持一致性。innobackupex 使用--apply-log 来做预备备份,或者叫 prepare
[root@lnmp01 ~]# innobackupex --defaults-file=/etc/my.cnf --user=root --password= --socket=/tmp/mysql.sock --apply-log /mnt/--02_09--/
:: 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!". innobackupex version 2.4. based on MySQL server 5.7. Linux (x86_64) (revision id: b4e0db5)
xtrabackup: cd to /mnt/--02_09--/
xtrabackup: This target seems to be not prepared yet.
InnoDB: Number of pools:
xtrabackup: xtrabackup_logfile detected: size=, start_lsn=()
xtrabackup: using the following InnoDB configuration for recovery:
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 =
xtrabackup: innodb_log_file_size =
xtrabackup: using the following InnoDB configuration for recovery:
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 =
xtrabackup: innodb_log_file_size =
xtrabackup: Starting InnoDB instance for recovery.
xtrabackup: Using bytes for buffer pool (set by --use-memory parameter)
InnoDB: PUNCH HOLE support available
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Uses event mutexes
InnoDB: GCC builtin __sync_synchronize() is used for memory barrier
InnoDB: Compressed tables use zlib 1.2.
InnoDB: Number of pools:
InnoDB: Using CPU crc32 instructions
InnoDB: Initializing buffer pool, total size = 100M, instances = , chunk size = 100M
InnoDB: Completed initialization of buffer pool
InnoDB: page_cleaner coordinator priority: -
InnoDB: Highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn
InnoDB: Doing recovery: scanned up to log sequence number (%)
InnoDB: Database was not shutdown normally!
InnoDB: Starting crash recovery.
InnoDB: Creating shared tablespace for temporary tables
InnoDB: Setting file './ibtmp1' size to MB. Physically writing the file full; Please wait ...
InnoDB: File './ibtmp1' size is now MB.
InnoDB: redo rollback segment(s) found. redo rollback segment(s) are active.
InnoDB: non-redo rollback segment(s) are active.
InnoDB: 5.7. started; log sequence number xtrabackup: starting shutdown with innodb_fast_shutdown =
InnoDB: FTS optimize thread exiting.
InnoDB: Starting shutdown...
InnoDB: Shutdown completed; log sequence number
InnoDB: Number of pools:
xtrabackup: using the following InnoDB configuration for recovery:
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 =
xtrabackup: innodb_log_file_size =
InnoDB: PUNCH HOLE support available
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Uses event mutexes
InnoDB: GCC builtin __sync_synchronize() is used for memory barrier
InnoDB: Compressed tables use zlib 1.2.
InnoDB: Number of pools:
InnoDB: Using CPU crc32 instructions
InnoDB: Initializing buffer pool, total size = 100M, instances = , chunk size = 100M
InnoDB: Completed initialization of buffer pool
InnoDB: page_cleaner coordinator priority: -
InnoDB: Setting log file ./ib_logfile101 size to MB
InnoDB: Setting log file ./ib_logfile1 size to MB
InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
InnoDB: New log files created, LSN=
InnoDB: Highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 2573324
InnoDB: Doing recovery: scanned up to log sequence number (%)
InnoDB: Database was not shutdown normally!
InnoDB: Starting crash recovery.
InnoDB: Removed temporary tablespace data file: "ibtmp1"
InnoDB: Creating shared tablespace for temporary tables
InnoDB: Setting file './ibtmp1' size to MB. Physically writing the file full; Please wait ...
InnoDB: File './ibtmp1' size is now MB.
InnoDB: redo rollback segment(s) found. redo rollback segment(s) are active.
InnoDB: non-redo rollback segment(s) are active.
InnoDB: 5.7. started; log sequence number
xtrabackup: starting shutdown with innodb_fast_shutdown =
InnoDB: FTS optimize thread exiting.
InnoDB: Starting shutdown...
InnoDB: Shutdown completed; log sequence number 2573352
:: completed OK!
成功后则会输出
InnoDB: Shutdown completed; log sequence number 2573352
180602 09:53:56 completed OK!
成功后,备份可以被用来还原数据库了。
prepare 的过程,其实是读取备份文件夹中的配置文件,然后 innobackupex 重做已提交
事务,回滚未提交事务,之后数据就被写到了备份的数据文件(innodb 文件)中,并重建日志 文件
--user-memory:指定 prepare 阶段可使用的内存,内存多则速度快,默认为 10MB
恢复数据库
使用 innobackupex --copy-back 来还原备份( recovery)
mysql> drop database ops; #模拟数据丢失,删除数据库ops
Query OK, row affected (0.01 sec) mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
rows in set (0.00 sec)
[root@lnmp01 mysql]# /etc/init.d/mysqld stop
Shutting down MySQL.. SUCCESS!
[root@lnmp01 mysql]# mv data data.old
[root@lnmp01 mysql]# ll
total 84
-rw-r--r-- 1 root root 17987 Sep 13 2017 COPYING
-rw-r--r-- 1 root root 17987 Sep 13 2017 COPYING-test
-rw-r--r-- 1 root root 2478 Sep 13 2017 README
-rw-r--r-- 1 root root 2478 Sep 13 2017 README-test
drwxr-xr-x 2 root root 4096 Jun 2 09:01 bin
drwxr-x--- 5 mysql mysql 4096 Jun 2 10:05 data.old
drwxr-xr-x 2 root root 4096 Jun 2 09:00 docs
drwxr-xr-x 3 root root 4096 Jun 2 09:00 include
drwxr-xr-x 4 root root 4096 Jun 2 09:01 lib
drwxr-xr-x 4 root root 4096 Jun 2 09:00 man
drwxr-xr-x 10 root root 4096 Jun 2 09:02 mysql-test
drwxr-xr-x 28 root root 4096 Jun 2 09:02 share
drwxr-xr-x 2 root root 4096 Jun 2 09:02 support-files
注: datadir 必须是为空的, innobackupex --copy-back 不会覆盖已存在的文件,还要注意,
还原时需要先关闭服务,如果服务是启动的,那么就不能还原到 datadir。
[root@lnmp01 mysql]# innobackupex --defaults-file=/etc/my.cnf --user=root --password= --socket=/tmp/mysql.sock --copy-back /mnt/--02_09--/
:: innobackupex: Starting the copy-back operation IMPORTANT: Please check that the copy-back run completes successfully.
At the end of a successful copy-back run innobackupex
prints "completed OK!". innobackupex version 2.4. based on MySQL server 5.7. Linux (x86_64) (revision id: b4e0db5)
:: [] Copying ib_logfile0 to /data/mysql/data/ib_logfile0
:: [] ...done
:: [] Copying ib_logfile1 to /data/mysql/data/ib_logfile1
:: [] ...done
:: [] Copying ibdata1 to /data/mysql/data/ibdata1
:: [] ...done
:: [] Copying ./ops/test.ibd to /data/mysql/data/ops/test.ibd
:: [] ...done
:: [] Copying ./ops/db.opt to /data/mysql/data/ops/db.opt
:: [] ...done
:: [] Copying ./ops/test.frm to /data/mysql/data/ops/test.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_connection_configuration.frm to /data/mysql/data/performance_schema/replication_connection_configuration.frm
:: [] ...done
:: [] Copying ./performance_schema/socket_summary_by_instance.frm to /data/mysql/data/performance_schema/socket_summary_by_instance.frm
:: [] ...done
:: [] Copying ./performance_schema/file_summary_by_event_name.frm to /data/mysql/data/performance_schema/file_summary_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/users.frm to /data/mysql/data/performance_schema/users.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_by_user_by_event_name.frm to /data/mysql/data/performance_schema/events_waits_summary_by_user_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/status_by_user.frm to /data/mysql/data/performance_schema/status_by_user.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_digest.frm to /data/mysql/data/performance_schema/events_statements_summary_by_digest.frm
:: [] ...done
:: [] Copying ./performance_schema/user_variables_by_thread.frm to /data/mysql/data/performance_schema/user_variables_by_thread.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_global_by_event_name.frm to /data/mysql/data/performance_schema/events_statements_summary_global_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/setup_timers.frm to /data/mysql/data/performance_schema/setup_timers.frm
:: [] ...done
:: [] Copying ./performance_schema/table_handles.frm to /data/mysql/data/performance_schema/table_handles.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_history_long.frm to /data/mysql/data/performance_schema/events_statements_history_long.frm
:: [] ...done
:: [] Copying ./performance_schema/global_variables.frm to /data/mysql/data/performance_schema/global_variables.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_applier_status.frm to /data/mysql/data/performance_schema/replication_applier_status.frm
:: [] ...done
:: [] Copying ./performance_schema/session_account_connect_attrs.frm to /data/mysql/data/performance_schema/session_account_connect_attrs.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_applier_configuration.frm to /data/mysql/data/performance_schema/replication_applier_configuration.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_history.frm to /data/mysql/data/performance_schema/events_statements_history.frm
:: [] ...done
:: [] Copying ./performance_schema/table_lock_waits_summary_by_table.frm to /data/mysql/data/performance_schema/table_lock_waits_summary_by_table.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_history.frm to /data/mysql/data/performance_schema/events_transactions_history.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_group_members.frm to /data/mysql/data/performance_schema/replication_group_members.frm
:: [] ...done
:: [] Copying ./performance_schema/table_io_waits_summary_by_table.frm to /data/mysql/data/performance_schema/table_io_waits_summary_by_table.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_thread_by_event_name.frm to /data/mysql/data/performance_schema/events_statements_summary_by_thread_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/memory_summary_global_by_event_name.frm to /data/mysql/data/performance_schema/memory_summary_global_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/db.opt to /data/mysql/data/performance_schema/db.opt
:: [] ...done
:: [] Copying ./performance_schema/mutex_instances.frm to /data/mysql/data/performance_schema/mutex_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_summary_by_user_by_event_name.frm to /data/mysql/data/performance_schema/events_transactions_summary_by_user_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/session_connect_attrs.frm to /data/mysql/data/performance_schema/session_connect_attrs.frm
:: [] ...done
:: [] Copying ./performance_schema/session_variables.frm to /data/mysql/data/performance_schema/session_variables.frm
:: [] ...done
:: [] Copying ./performance_schema/status_by_host.frm to /data/mysql/data/performance_schema/status_by_host.frm
:: [] ...done
:: [] Copying ./performance_schema/status_by_account.frm to /data/mysql/data/performance_schema/status_by_account.frm
:: [] ...done
:: [] Copying ./performance_schema/setup_instruments.frm to /data/mysql/data/performance_schema/setup_instruments.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_summary_by_host_by_event_name.frm to /data/mysql/data/performance_schema/events_transactions_summary_by_host_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_applier_status_by_coordinator.frm to /data/mysql/data/performance_schema/replication_applier_status_by_coordinator.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_summary_by_thread_by_event_name.frm to /data/mysql/data/performance_schema/events_stages_summary_by_thread_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/objects_summary_global_by_type.frm to /data/mysql/data/performance_schema/objects_summary_global_by_type.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_history_long.frm to /data/mysql/data/performance_schema/events_transactions_history_long.frm
:: [] ...done
:: [] Copying ./performance_schema/setup_objects.frm to /data/mysql/data/performance_schema/setup_objects.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_connection_status.frm to /data/mysql/data/performance_schema/replication_connection_status.frm
:: [] ...done
:: [] Copying ./performance_schema/memory_summary_by_user_by_event_name.frm to /data/mysql/data/performance_schema/memory_summary_by_user_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_program.frm to /data/mysql/data/performance_schema/events_statements_summary_by_program.frm
:: [] ...done
:: [] Copying ./performance_schema/file_instances.frm to /data/mysql/data/performance_schema/file_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/hosts.frm to /data/mysql/data/performance_schema/hosts.frm
:: [] ...done
:: [] Copying ./performance_schema/setup_consumers.frm to /data/mysql/data/performance_schema/setup_consumers.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_group_member_stats.frm to /data/mysql/data/performance_schema/replication_group_member_stats.frm
:: [] ...done
:: [] Copying ./performance_schema/prepared_statements_instances.frm to /data/mysql/data/performance_schema/prepared_statements_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_host_by_event_name.frm to /data/mysql/data/performance_schema/events_statements_summary_by_host_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_by_account_by_event_name.frm to /data/mysql/data/performance_schema/events_waits_summary_by_account_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/variables_by_thread.frm to /data/mysql/data/performance_schema/variables_by_thread.frm
:: [] ...done
:: [] Copying ./performance_schema/memory_summary_by_host_by_event_name.frm to /data/mysql/data/performance_schema/memory_summary_by_host_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_summary_by_account_by_event_name.frm to /data/mysql/data/performance_schema/events_transactions_summary_by_account_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/replication_applier_status_by_worker.frm to /data/mysql/data/performance_schema/replication_applier_status_by_worker.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_by_thread_by_event_name.frm to /data/mysql/data/performance_schema/events_waits_summary_by_thread_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_current.frm to /data/mysql/data/performance_schema/events_waits_current.frm
:: [] ...done
:: [] Copying ./performance_schema/accounts.frm to /data/mysql/data/performance_schema/accounts.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_summary_by_thread_by_event_name.frm to /data/mysql/data/performance_schema/events_transactions_summary_by_thread_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/table_io_waits_summary_by_index_usage.frm to /data/mysql/data/performance_schema/table_io_waits_summary_by_index_usage.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_account_by_event_name.frm to /data/mysql/data/performance_schema/events_statements_summary_by_account_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_current.frm to /data/mysql/data/performance_schema/events_transactions_current.frm
:: [] ...done
:: [] Copying ./performance_schema/metadata_locks.frm to /data/mysql/data/performance_schema/metadata_locks.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_current.frm to /data/mysql/data/performance_schema/events_statements_current.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_summary_by_host_by_event_name.frm to /data/mysql/data/performance_schema/events_stages_summary_by_host_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/socket_instances.frm to /data/mysql/data/performance_schema/socket_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_history_long.frm to /data/mysql/data/performance_schema/events_stages_history_long.frm
:: [] ...done
:: [] Copying ./performance_schema/events_statements_summary_by_user_by_event_name.frm to /data/mysql/data/performance_schema/events_statements_summary_by_user_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/socket_summary_by_event_name.frm to /data/mysql/data/performance_schema/socket_summary_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/setup_actors.frm to /data/mysql/data/performance_schema/setup_actors.frm
:: [] ...done
:: [] Copying ./performance_schema/rwlock_instances.frm to /data/mysql/data/performance_schema/rwlock_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/host_cache.frm to /data/mysql/data/performance_schema/host_cache.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_current.frm to /data/mysql/data/performance_schema/events_stages_current.frm
:: [] ...done
:: [] Copying ./performance_schema/events_transactions_summary_global_by_event_name.frm to /data/mysql/data/performance_schema/events_transactions_summary_global_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/status_by_thread.frm to /data/mysql/data/performance_schema/status_by_thread.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_history.frm to /data/mysql/data/performance_schema/events_stages_history.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_summary_global_by_event_name.frm to /data/mysql/data/performance_schema/events_stages_summary_global_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/performance_timers.frm to /data/mysql/data/performance_schema/performance_timers.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_history_long.frm to /data/mysql/data/performance_schema/events_waits_history_long.frm
:: [] ...done
:: [] Copying ./performance_schema/file_summary_by_instance.frm to /data/mysql/data/performance_schema/file_summary_by_instance.frm
:: [] ...done
:: [] Copying ./performance_schema/memory_summary_by_account_by_event_name.frm to /data/mysql/data/performance_schema/memory_summary_by_account_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/memory_summary_by_thread_by_event_name.frm to /data/mysql/data/performance_schema/memory_summary_by_thread_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/cond_instances.frm to /data/mysql/data/performance_schema/cond_instances.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_global_by_event_name.frm to /data/mysql/data/performance_schema/events_waits_summary_global_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_by_host_by_event_name.frm to /data/mysql/data/performance_schema/events_waits_summary_by_host_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_summary_by_instance.frm to /data/mysql/data/performance_schema/events_waits_summary_by_instance.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_summary_by_user_by_event_name.frm to /data/mysql/data/performance_schema/events_stages_summary_by_user_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/events_waits_history.frm to /data/mysql/data/performance_schema/events_waits_history.frm
:: [] ...done
:: [] Copying ./performance_schema/events_stages_summary_by_account_by_event_name.frm to /data/mysql/data/performance_schema/events_stages_summary_by_account_by_event_name.frm
:: [] ...done
:: [] Copying ./performance_schema/threads.frm to /data/mysql/data/performance_schema/threads.frm
:: [] ...done
:: [] Copying ./performance_schema/session_status.frm to /data/mysql/data/performance_schema/session_status.frm
:: [] ...done
:: [] Copying ./performance_schema/global_status.frm to /data/mysql/data/performance_schema/global_status.frm
:: [] ...done
:: [] Copying ./mysql/slave_master_info.frm to /data/mysql/data/mysql/slave_master_info.frm
:: [] ...done
:: [] Copying ./mysql/procs_priv.frm to /data/mysql/data/mysql/procs_priv.frm
:: [] ...done
:: [] Copying ./mysql/servers.ibd to /data/mysql/data/mysql/servers.ibd
:: [] ...done
:: [] Copying ./mysql/innodb_index_stats.ibd to /data/mysql/data/mysql/innodb_index_stats.ibd
:: [] ...done
:: [] Copying ./mysql/columns_priv.MYD to /data/mysql/data/mysql/columns_priv.MYD
:: [] ...done
:: [] Copying ./mysql/slow_log.CSV to /data/mysql/data/mysql/slow_log.CSV
:: [] ...done
:: [] Copying ./mysql/general_log.CSV to /data/mysql/data/mysql/general_log.CSV
:: [] ...done
:: [] Copying ./mysql/db.MYI to /data/mysql/data/mysql/db.MYI
:: [] ...done
:: [] Copying ./mysql/proc.frm to /data/mysql/data/mysql/proc.frm
:: [] ...done
:: [] Copying ./mysql/ndb_binlog_index.MYI to /data/mysql/data/mysql/ndb_binlog_index.MYI
:: [] ...done
:: [] Copying ./mysql/time_zone.ibd to /data/mysql/data/mysql/time_zone.ibd
:: [] ...done
:: [] Copying ./mysql/help_relation.frm to /data/mysql/data/mysql/help_relation.frm
:: [] ...done
:: [] Copying ./mysql/db.MYD to /data/mysql/data/mysql/db.MYD
:: [] ...done
:: [] Copying ./mysql/help_topic.frm to /data/mysql/data/mysql/help_topic.frm
:: [] ...done
:: [] Copying ./mysql/func.MYD to /data/mysql/data/mysql/func.MYD
:: [] ...done
:: [] Copying ./mysql/columns_priv.frm to /data/mysql/data/mysql/columns_priv.frm
:: [] ...done
:: [] Copying ./mysql/time_zone_transition_type.ibd to /data/mysql/data/mysql/time_zone_transition_type.ibd
:: [] ...done
:: [] Copying ./mysql/slave_worker_info.ibd to /data/mysql/data/mysql/slave_worker_info.ibd
:: [] ...done
:: [] Copying ./mysql/proxies_priv.MYD to /data/mysql/data/mysql/proxies_priv.MYD
:: [] ...done
:: [] Copying ./mysql/tables_priv.MYI to /data/mysql/data/mysql/tables_priv.MYI
:: [] ...done
:: [] Copying ./mysql/time_zone_transition.frm to /data/mysql/data/mysql/time_zone_transition.frm
:: [] ...done
:: [] Copying ./mysql/help_keyword.ibd to /data/mysql/data/mysql/help_keyword.ibd
:: [] ...done
:: [] Copying ./mysql/time_zone_leap_second.frm to /data/mysql/data/mysql/time_zone_leap_second.frm
:: [] ...done
:: [] Copying ./mysql/server_cost.ibd to /data/mysql/data/mysql/server_cost.ibd
:: [] ...done
:: [] Copying ./mysql/help_category.frm to /data/mysql/data/mysql/help_category.frm
:: [] ...done
:: [] Copying ./mysql/db.opt to /data/mysql/data/mysql/db.opt
:: [] ...done
:: [] Copying ./mysql/help_topic.ibd to /data/mysql/data/mysql/help_topic.ibd
:: [] ...done
:: [] Copying ./mysql/time_zone_leap_second.ibd to /data/mysql/data/mysql/time_zone_leap_second.ibd
:: [] ...done
:: [] Copying ./mysql/event.MYI to /data/mysql/data/mysql/event.MYI
:: [] ...done
:: [] Copying ./mysql/procs_priv.MYD to /data/mysql/data/mysql/procs_priv.MYD
:: [] ...done
:: [] Copying ./mysql/slave_master_info.ibd to /data/mysql/data/mysql/slave_master_info.ibd
:: [] ...done
:: [] Copying ./mysql/servers.frm to /data/mysql/data/mysql/servers.frm
:: [] ...done
:: [] Copying ./mysql/ndb_binlog_index.MYD to /data/mysql/data/mysql/ndb_binlog_index.MYD
:: [] ...done
:: [] Copying ./mysql/tables_priv.MYD to /data/mysql/data/mysql/tables_priv.MYD
:: [] ...done
:: [] Copying ./mysql/innodb_index_stats.frm to /data/mysql/data/mysql/innodb_index_stats.frm
:: [] ...done
:: [] Copying ./mysql/general_log.CSM to /data/mysql/data/mysql/general_log.CSM
:: [] ...done
:: [] Copying ./mysql/proxies_priv.MYI to /data/mysql/data/mysql/proxies_priv.MYI
:: [] ...done
:: [] Copying ./mysql/proc.MYD to /data/mysql/data/mysql/proc.MYD
:: [] ...done
:: [] Copying ./mysql/proc.MYI to /data/mysql/data/mysql/proc.MYI
:: [] ...done
:: [] Copying ./mysql/time_zone_transition_type.frm to /data/mysql/data/mysql/time_zone_transition_type.frm
:: [] ...done
:: [] Copying ./mysql/proxies_priv.frm to /data/mysql/data/mysql/proxies_priv.frm
:: [] ...done
:: [] Copying ./mysql/procs_priv.MYI to /data/mysql/data/mysql/procs_priv.MYI
:: [] ...done
:: [] Copying ./mysql/slave_worker_info.frm to /data/mysql/data/mysql/slave_worker_info.frm
:: [] ...done
:: [] Copying ./mysql/slave_relay_log_info.frm to /data/mysql/data/mysql/slave_relay_log_info.frm
:: [] ...done
:: [] Copying ./mysql/columns_priv.MYI to /data/mysql/data/mysql/columns_priv.MYI
:: [] ...done
:: [] Copying ./mysql/func.MYI to /data/mysql/data/mysql/func.MYI
:: [] ...done
:: [] Copying ./mysql/help_category.ibd to /data/mysql/data/mysql/help_category.ibd
:: [] ...done
:: [] Copying ./mysql/db.frm to /data/mysql/data/mysql/db.frm
:: [] ...done
:: [] Copying ./mysql/tables_priv.frm to /data/mysql/data/mysql/tables_priv.frm
:: [] ...done
:: [] Copying ./mysql/time_zone_name.frm to /data/mysql/data/mysql/time_zone_name.frm
:: [] ...done
:: [] Copying ./mysql/plugin.frm to /data/mysql/data/mysql/plugin.frm
:: [] ...done
:: [] Copying ./mysql/time_zone_transition.ibd to /data/mysql/data/mysql/time_zone_transition.ibd
:: [] ...done
:: [] Copying ./mysql/user.MYD to /data/mysql/data/mysql/user.MYD
:: [] ...done
:: [] Copying ./mysql/gtid_executed.ibd to /data/mysql/data/mysql/gtid_executed.ibd
:: [] ...done
:: [] Copying ./mysql/slow_log.frm to /data/mysql/data/mysql/slow_log.frm
:: [] ...done
:: [] Copying ./mysql/slave_relay_log_info.ibd to /data/mysql/data/mysql/slave_relay_log_info.ibd
:: [] ...done
:: [] Copying ./mysql/func.frm to /data/mysql/data/mysql/func.frm
:: [] ...done
:: [] Copying ./mysql/innodb_table_stats.ibd to /data/mysql/data/mysql/innodb_table_stats.ibd
:: [] ...done
:: [] Copying ./mysql/event.frm to /data/mysql/data/mysql/event.frm
:: [] ...done
:: [] Copying ./mysql/help_relation.ibd to /data/mysql/data/mysql/help_relation.ibd
:: [] ...done
:: [] Copying ./mysql/innodb_table_stats.frm to /data/mysql/data/mysql/innodb_table_stats.frm
:: [] ...done
:: [] Copying ./mysql/user.MYI to /data/mysql/data/mysql/user.MYI
:: [] ...done
:: [] Copying ./mysql/event.MYD to /data/mysql/data/mysql/event.MYD
:: [] ...done
:: [] Copying ./mysql/server_cost.frm to /data/mysql/data/mysql/server_cost.frm
:: [] ...done
:: [] Copying ./mysql/slow_log.CSM to /data/mysql/data/mysql/slow_log.CSM
:: [] ...done
:: [] Copying ./mysql/gtid_executed.frm to /data/mysql/data/mysql/gtid_executed.frm
:: [] ...done
:: [] Copying ./mysql/engine_cost.frm to /data/mysql/data/mysql/engine_cost.frm
:: [] ...done
:: [] Copying ./mysql/help_keyword.frm to /data/mysql/data/mysql/help_keyword.frm
:: [] ...done
:: [] Copying ./mysql/user.frm to /data/mysql/data/mysql/user.frm
:: [] ...done
:: [] Copying ./mysql/engine_cost.ibd to /data/mysql/data/mysql/engine_cost.ibd
:: [] ...done
:: [] Copying ./mysql/time_zone.frm to /data/mysql/data/mysql/time_zone.frm
:: [] ...done
:: [] Copying ./mysql/ndb_binlog_index.frm to /data/mysql/data/mysql/ndb_binlog_index.frm
:: [] ...done
:: [] Copying ./mysql/plugin.ibd to /data/mysql/data/mysql/plugin.ibd
:: [] ...done
:: [] Copying ./mysql/time_zone_name.ibd to /data/mysql/data/mysql/time_zone_name.ibd
:: [] ...done
:: [] Copying ./mysql/general_log.frm to /data/mysql/data/mysql/general_log.frm
:: [] ...done
:: [] Copying ./xtrabackup_info to /data/mysql/data/xtrabackup_info
:: [] ...done
:: [] Copying ./ibtmp1 to /data/mysql/data/ibtmp1
:: [] ...done
:: [] Copying ./sys/session_ssl_status.frm to /data/mysql/data/sys/session_ssl_status.frm
:: [] ...done
:: [] Copying ./sys/schema_object_overview.frm to /data/mysql/data/sys/schema_object_overview.frm
:: [] ...done
:: [] Copying ./sys/statements_with_temp_tables.frm to /data/mysql/data/sys/statements_with_temp_tables.frm
:: [] ...done
:: [] Copying ./sys/schema_auto_increment_columns.frm to /data/mysql/data/sys/schema_auto_increment_columns.frm
:: [] ...done
:: [] Copying ./sys/x@0024ps_digest_95th_percentile_by_avg_us.frm to /data/mysql/data/sys/x@0024ps_digest_95th_percentile_by_avg_us.frm
:: [] ...done
:: [] Copying ./sys/schema_table_statistics.frm to /data/mysql/data/sys/schema_table_statistics.frm
:: [] ...done
:: [] Copying ./sys/processlist.frm to /data/mysql/data/sys/processlist.frm
:: [] ...done
:: [] Copying ./sys/memory_global_by_current_bytes.frm to /data/mysql/data/sys/memory_global_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024host_summary_by_file_io.frm to /data/mysql/data/sys/x@0024host_summary_by_file_io.frm
:: [] ...done
:: [] Copying ./sys/user_summary_by_statement_latency.frm to /data/mysql/data/sys/user_summary_by_statement_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024statement_analysis.frm to /data/mysql/data/sys/x@0024statement_analysis.frm
:: [] ...done
:: [] Copying ./sys/io_by_thread_by_latency.frm to /data/mysql/data/sys/io_by_thread_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary.frm to /data/mysql/data/sys/x@0024user_summary.frm
:: [] ...done
:: [] Copying ./sys/io_global_by_wait_by_latency.frm to /data/mysql/data/sys/io_global_by_wait_by_latency.frm
:: [] ...done
:: [] Copying ./sys/metrics.frm to /data/mysql/data/sys/metrics.frm
:: [] ...done
:: [] Copying ./sys/x@0024innodb_lock_waits.frm to /data/mysql/data/sys/x@0024innodb_lock_waits.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_table_lock_waits.frm to /data/mysql/data/sys/x@0024schema_table_lock_waits.frm
:: [] ...done
:: [] Copying ./sys/sys_config_insert_set_user.TRN to /data/mysql/data/sys/sys_config_insert_set_user.TRN
:: [] ...done
:: [] Copying ./sys/x@0024memory_global_by_current_bytes.frm to /data/mysql/data/sys/x@0024memory_global_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024latest_file_io.frm to /data/mysql/data/sys/x@0024latest_file_io.frm
:: [] ...done
:: [] Copying ./sys/version.frm to /data/mysql/data/sys/version.frm
:: [] ...done
:: [] Copying ./sys/sys_config.TRG to /data/mysql/data/sys/sys_config.TRG
:: [] ...done
:: [] Copying ./sys/x@0024memory_by_host_by_current_bytes.frm to /data/mysql/data/sys/x@0024memory_by_host_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024waits_global_by_latency.frm to /data/mysql/data/sys/x@0024waits_global_by_latency.frm
:: [] ...done
:: [] Copying ./sys/host_summary_by_stages.frm to /data/mysql/data/sys/host_summary_by_stages.frm
:: [] ...done
:: [] Copying ./sys/x@0024wait_classes_global_by_avg_latency.frm to /data/mysql/data/sys/x@0024wait_classes_global_by_avg_latency.frm
:: [] ...done
:: [] Copying ./sys/db.opt to /data/mysql/data/sys/db.opt
:: [] ...done
:: [] Copying ./sys/waits_by_user_by_latency.frm to /data/mysql/data/sys/waits_by_user_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024statements_with_sorting.frm to /data/mysql/data/sys/x@0024statements_with_sorting.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary_by_file_io_type.frm to /data/mysql/data/sys/x@0024user_summary_by_file_io_type.frm
:: [] ...done
:: [] Copying ./sys/host_summary_by_file_io_type.frm to /data/mysql/data/sys/host_summary_by_file_io_type.frm
:: [] ...done
:: [] Copying ./sys/x@0024io_global_by_file_by_bytes.frm to /data/mysql/data/sys/x@0024io_global_by_file_by_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024statements_with_full_table_scans.frm to /data/mysql/data/sys/x@0024statements_with_full_table_scans.frm
:: [] ...done
:: [] Copying ./sys/statements_with_full_table_scans.frm to /data/mysql/data/sys/statements_with_full_table_scans.frm
:: [] ...done
:: [] Copying ./sys/x@0024host_summary_by_stages.frm to /data/mysql/data/sys/x@0024host_summary_by_stages.frm
:: [] ...done
:: [] Copying ./sys/x@0024host_summary_by_file_io_type.frm to /data/mysql/data/sys/x@0024host_summary_by_file_io_type.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_index_statistics.frm to /data/mysql/data/sys/x@0024schema_index_statistics.frm
:: [] ...done
:: [] Copying ./sys/waits_by_host_by_latency.frm to /data/mysql/data/sys/waits_by_host_by_latency.frm
:: [] ...done
:: [] Copying ./sys/schema_table_lock_waits.frm to /data/mysql/data/sys/schema_table_lock_waits.frm
:: [] ...done
:: [] Copying ./sys/innodb_buffer_stats_by_schema.frm to /data/mysql/data/sys/innodb_buffer_stats_by_schema.frm
:: [] ...done
:: [] Copying ./sys/host_summary_by_file_io.frm to /data/mysql/data/sys/host_summary_by_file_io.frm
:: [] ...done
:: [] Copying ./sys/user_summary_by_statement_type.frm to /data/mysql/data/sys/user_summary_by_statement_type.frm
:: [] ...done
:: [] Copying ./sys/x@0024ps_digest_avg_latency_distribution.frm to /data/mysql/data/sys/x@0024ps_digest_avg_latency_distribution.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary_by_stages.frm to /data/mysql/data/sys/x@0024user_summary_by_stages.frm
:: [] ...done
:: [] Copying ./sys/x@0024statements_with_errors_or_warnings.frm to /data/mysql/data/sys/x@0024statements_with_errors_or_warnings.frm
:: [] ...done
:: [] Copying ./sys/x@0024memory_by_user_by_current_bytes.frm to /data/mysql/data/sys/x@0024memory_by_user_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024statements_with_temp_tables.frm to /data/mysql/data/sys/x@0024statements_with_temp_tables.frm
:: [] ...done
:: [] Copying ./sys/host_summary_by_statement_type.frm to /data/mysql/data/sys/host_summary_by_statement_type.frm
:: [] ...done
:: [] Copying ./sys/x@0024host_summary_by_statement_latency.frm to /data/mysql/data/sys/x@0024host_summary_by_statement_latency.frm
:: [] ...done
:: [] Copying ./sys/wait_classes_global_by_avg_latency.frm to /data/mysql/data/sys/wait_classes_global_by_avg_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024memory_by_thread_by_current_bytes.frm to /data/mysql/data/sys/x@0024memory_by_thread_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/io_global_by_file_by_bytes.frm to /data/mysql/data/sys/io_global_by_file_by_bytes.frm
:: [] ...done
:: [] Copying ./sys/statements_with_sorting.frm to /data/mysql/data/sys/statements_with_sorting.frm
:: [] ...done
:: [] Copying ./sys/session.frm to /data/mysql/data/sys/session.frm
:: [] ...done
:: [] Copying ./sys/user_summary.frm to /data/mysql/data/sys/user_summary.frm
:: [] ...done
:: [] Copying ./sys/schema_index_statistics.frm to /data/mysql/data/sys/schema_index_statistics.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary_by_statement_latency.frm to /data/mysql/data/sys/x@0024user_summary_by_statement_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024host_summary.frm to /data/mysql/data/sys/x@0024host_summary.frm
:: [] ...done
:: [] Copying ./sys/statement_analysis.frm to /data/mysql/data/sys/statement_analysis.frm
:: [] ...done
:: [] Copying ./sys/x@0024io_global_by_wait_by_bytes.frm to /data/mysql/data/sys/x@0024io_global_by_wait_by_bytes.frm
:: [] ...done
:: [] Copying ./sys/io_global_by_wait_by_bytes.frm to /data/mysql/data/sys/io_global_by_wait_by_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024innodb_buffer_stats_by_schema.frm to /data/mysql/data/sys/x@0024innodb_buffer_stats_by_schema.frm
:: [] ...done
:: [] Copying ./sys/x@0024io_global_by_wait_by_latency.frm to /data/mysql/data/sys/x@0024io_global_by_wait_by_latency.frm
:: [] ...done
:: [] Copying ./sys/io_global_by_file_by_latency.frm to /data/mysql/data/sys/io_global_by_file_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_tables_with_full_table_scans.frm to /data/mysql/data/sys/x@0024schema_tables_with_full_table_scans.frm
:: [] ...done
:: [] Copying ./sys/wait_classes_global_by_latency.frm to /data/mysql/data/sys/wait_classes_global_by_latency.frm
:: [] ...done
:: [] Copying ./sys/memory_by_host_by_current_bytes.frm to /data/mysql/data/sys/memory_by_host_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/schema_unused_indexes.frm to /data/mysql/data/sys/schema_unused_indexes.frm
:: [] ...done
:: [] Copying ./sys/innodb_buffer_stats_by_table.frm to /data/mysql/data/sys/innodb_buffer_stats_by_table.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_flattened_keys.frm to /data/mysql/data/sys/x@0024schema_flattened_keys.frm
:: [] ...done
:: [] Copying ./sys/latest_file_io.frm to /data/mysql/data/sys/latest_file_io.frm
:: [] ...done
:: [] Copying ./sys/x@0024io_by_thread_by_latency.frm to /data/mysql/data/sys/x@0024io_by_thread_by_latency.frm
:: [] ...done
:: [] Copying ./sys/host_summary.frm to /data/mysql/data/sys/host_summary.frm
:: [] ...done
:: [] Copying ./sys/schema_table_statistics_with_buffer.frm to /data/mysql/data/sys/schema_table_statistics_with_buffer.frm
:: [] ...done
:: [] Copying ./sys/memory_by_thread_by_current_bytes.frm to /data/mysql/data/sys/memory_by_thread_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/statements_with_errors_or_warnings.frm to /data/mysql/data/sys/statements_with_errors_or_warnings.frm
:: [] ...done
:: [] Copying ./sys/x@0024waits_by_host_by_latency.frm to /data/mysql/data/sys/x@0024waits_by_host_by_latency.frm
:: [] ...done
:: [] Copying ./sys/schema_redundant_indexes.frm to /data/mysql/data/sys/schema_redundant_indexes.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_table_statistics_with_buffer.frm to /data/mysql/data/sys/x@0024schema_table_statistics_with_buffer.frm
:: [] ...done
:: [] Copying ./sys/memory_global_total.frm to /data/mysql/data/sys/memory_global_total.frm
:: [] ...done
:: [] Copying ./sys/user_summary_by_file_io.frm to /data/mysql/data/sys/user_summary_by_file_io.frm
:: [] ...done
:: [] Copying ./sys/statements_with_runtimes_in_95th_percentile.frm to /data/mysql/data/sys/statements_with_runtimes_in_95th_percentile.frm
:: [] ...done
:: [] Copying ./sys/memory_by_user_by_current_bytes.frm to /data/mysql/data/sys/memory_by_user_by_current_bytes.frm
:: [] ...done
:: [] Copying ./sys/x@0024ps_schema_table_statistics_io.frm to /data/mysql/data/sys/x@0024ps_schema_table_statistics_io.frm
:: [] ...done
:: [] Copying ./sys/innodb_lock_waits.frm to /data/mysql/data/sys/innodb_lock_waits.frm
:: [] ...done
:: [] Copying ./sys/x@0024session.frm to /data/mysql/data/sys/x@0024session.frm
:: [] ...done
:: [] Copying ./sys/sys_config_update_set_user.TRN to /data/mysql/data/sys/sys_config_update_set_user.TRN
:: [] ...done
:: [] Copying ./sys/x@0024memory_global_total.frm to /data/mysql/data/sys/x@0024memory_global_total.frm
:: [] ...done
:: [] Copying ./sys/ps_check_lost_instrumentation.frm to /data/mysql/data/sys/ps_check_lost_instrumentation.frm
:: [] ...done
:: [] Copying ./sys/user_summary_by_file_io_type.frm to /data/mysql/data/sys/user_summary_by_file_io_type.frm
:: [] ...done
:: [] Copying ./sys/host_summary_by_statement_latency.frm to /data/mysql/data/sys/host_summary_by_statement_latency.frm
:: [] ...done
:: [] Copying ./sys/sys_config.frm to /data/mysql/data/sys/sys_config.frm
:: [] ...done
:: [] Copying ./sys/user_summary_by_stages.frm to /data/mysql/data/sys/user_summary_by_stages.frm
:: [] ...done
:: [] Copying ./sys/x@0024statements_with_runtimes_in_95th_percentile.frm to /data/mysql/data/sys/x@0024statements_with_runtimes_in_95th_percentile.frm
:: [] ...done
:: [] Copying ./sys/x@0024io_global_by_file_by_latency.frm to /data/mysql/data/sys/x@0024io_global_by_file_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024wait_classes_global_by_latency.frm to /data/mysql/data/sys/x@0024wait_classes_global_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024schema_table_statistics.frm to /data/mysql/data/sys/x@0024schema_table_statistics.frm
:: [] ...done
:: [] Copying ./sys/sys_config.ibd to /data/mysql/data/sys/sys_config.ibd
:: [] ...done
:: [] Copying ./sys/x@0024host_summary_by_statement_type.frm to /data/mysql/data/sys/x@0024host_summary_by_statement_type.frm
:: [] ...done
:: [] Copying ./sys/waits_global_by_latency.frm to /data/mysql/data/sys/waits_global_by_latency.frm
:: [] ...done
:: [] Copying ./sys/x@0024innodb_buffer_stats_by_table.frm to /data/mysql/data/sys/x@0024innodb_buffer_stats_by_table.frm
:: [] ...done
:: [] Copying ./sys/x@0024processlist.frm to /data/mysql/data/sys/x@0024processlist.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary_by_file_io.frm to /data/mysql/data/sys/x@0024user_summary_by_file_io.frm
:: [] ...done
:: [] Copying ./sys/schema_tables_with_full_table_scans.frm to /data/mysql/data/sys/schema_tables_with_full_table_scans.frm
:: [] ...done
:: [] Copying ./sys/x@0024user_summary_by_statement_type.frm to /data/mysql/data/sys/x@0024user_summary_by_statement_type.frm
:: [] ...done
:: [] Copying ./sys/x@0024waits_by_user_by_latency.frm to /data/mysql/data/sys/x@0024waits_by_user_by_latency.frm
:: [] ...done
:: [] Copying ./xtrabackup_master_key_id to /data/mysql/data/xtrabackup_master_key_id
:: [] ...done
:: [] Copying ./ib_buffer_pool to /data/mysql/data/ib_buffer_pool
:: [] ...done
:: completed OK!
innobackupex 会根据 my.cnf 的配置,将所有备份数据复制到 my.cnf 里面指定的 datadir 路径
下。
如果恢复成功,最后会有如下提示:
180602 10:06:57 [01] ...done
180602 10:06:57 completed OK!
默认情况下是通过 root 用户恢复的数据,所以 mysql 数据文件夹目录是 root 权限,需
要修改文件的所有者和权限
[root@lnmp01 mysql]# pwd
/data/mysql
[root@lnmp01 mysql]# ll
total
-rw-r--r-- root root Sep COPYING
-rw-r--r-- root root Sep COPYING-test
-rw-r--r-- root root Sep README
-rw-r--r-- root root Sep README-test
drwxr-xr-x root root Jun : bin
drwxr-x--- root root Jun : data
drwxr-x--- mysql mysql Jun : data.old
drwxr-xr-x root root Jun : docs
drwxr-xr-x root root Jun : include
drwxr-xr-x root root Jun : lib
drwxr-xr-x root root Jun : man
drwxr-xr-x root root Jun : mysql-test
drwxr-xr-x root root Jun : share
drwxr-xr-x root root Jun : support-files
[root@lnmp01 mysql]# chown -R mysql.mysql data
Mysql 数据库备份工具 xtrabackup的更多相关文章
- mysql数据库备份工具xtrabackup
1.下载二进制安装包 其他高版本测试缺少依赖 2.xtrabackup参数说明 简介: Xtrabackup是一个对InnoDB做数据备份的工具,支持在线热备份(备份时不影响数据读写),是商业备份工 ...
- MySQL数据库备份之xtrabackup工具使用
一.Xtrabackup备份介绍及原理 二.Xtrabackup的安装 1.在centos7上基于yum源安装percona-xtrabackup软件 [root@node7 ~]# yum -y i ...
- MySQL数据库备份工具mysqldump的使用(转)
说明:MySQL中InnoDB和MyISAM类型数据库,这个工具最新版本好像都已经支持了,以前可能存在于MyISAM的只能只用冷备份方式的说法. 备份指定库: mysqldump -h127.0.0. ...
- MySQL 物理备份工具-xtrabackup
安装 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo yum -y install perl ...
- mysql数据库-备份与还原-Percona XtraBackup 2.4备份工具使用
目录 xtrabackup 特点 备份生成的相关文件 xtrabackup 安装 xtrabackup 用法 1 备份 2 预备份 3 还原 4 其他 还原注意事项 xtrabackup实现完全备份及 ...
- Xtrabackup原理及使用innobackupex进行MySQL数据库备份恢复
Xtrabackup是由percona提供的mysql数据库备份工具,据官方介绍,这也是世界上惟一一款开源的能够对innodb和xtradb数据库进行热备的工具. Xtrabackup中主要包含两个工 ...
- xtrabackup数据库备份工具
下来我来介绍一下更强大的备份工具:xtrabackup xtrabackup是Percona公司CTO Vadim参与开发的一款基于InnoDB的在线热备工具,具有开源,免费,支持在线热备,备份恢复速 ...
- MySQL数据库备份还原
本文以CentOS 7 yum安装的MariaDB-server5.5为例,说明MySQL的几种 备份还原方式 将服务器A(192.168.1.100)上的数据库备份,还原到B(192.168.1.2 ...
- MySQL数据库备份的4种方式
MySQL备份的4种方式 总结: 备份方法 备份速度 恢复速度 便捷性 功能 一般用于 cp 快 快 一般.灵活性低 很弱 少量数据备份 mysqldump 慢 慢 一般.可无视存储引擎的差异 一般 ...
随机推荐
- python之列表推导、迭代器、生成器
http://blog.chinaunix.net/uid-26722078-id-3484197.html 1.列表推导 看几个例子,一切就明白了. #!/usr/bin/python number ...
- Django 模型与 Mysql 数据类型对应
Django 1.11.9 文件路径:site-packages\django\db\backends\mysql\base.py–class DatabaseWrapper _data_types ...
- ATM-db-dnhandler
import os,jsonfrom conf import settings def select(name): user_path = os.path.join(settings.BASE_DB, ...
- Emgu.CV.CvInvoke的类型初始值设定项引发异常
被这个问题蛋疼了一个下午,终于解决了.我的服务器出现这个问题的原因:可能是没有安装emgucv. 解决方法: 1.下载并安装emgucv 下载地址:链接: https://pan.baidu.com/ ...
- phpstrom怎样显示类的方法或函数列表
phpstorm是能显示类的函数或方法列表的. 打开phpstorm,鼠标放到编辑器的右下角(矩形加一个下划线,跟电视机的图标差不多),不用点击就能显示出来一个弹窗: 让后点击Structure,就出 ...
- spark和MR比较
MapReduce: 分布式的计算框架 缺点:执行速度慢 IO瓶颈 ==> 磁盘IO 网络IO shuffle机制:数据需要输出到磁盘,而且每次shuffle都需要进行排序操作 框架的机制: 只 ...
- python3.7 time模块
#!/usr/bin/env python __author__ = "lrtao2010" #python3.7 time模块 #time模块没有time.py文件,是内置到解释 ...
- 笔记-http-header
笔记-http-header 1. Requests部分 Host:请求的web服务器域名地址 User-Agent:HTTP客户端运行的浏览器类型的详细信息.通过该头部信息,web服务器可 ...
- 自定义 popWindow弹框 工具包
前言:因为Android 没有像IOS一样的ActionSheet,虽然在github上看到有一些类似ActionSheet的库,总觉得不好用,不如自己写一个弹框通用类,样式全部自已来多好. Step ...
- 手机端sticker布局,底部按钮在屏幕底部
<template> <div class="product-detail-container"> <div class="detail&q ...