5.执行恢复:
[root@sztech1 mysql]# mysqlbackup --backup_dir=/u01/dbback/ copy-back
MySQL Enterprise Backup version 3.11.0 Linux-3.8.13-16.2.1.el6uek.x86_64-x86_64 [2014/08/26] Copyright (c) 2003, 2014, Oracle and/or its affiliates. All Rights Reserved.
mysqlbackup: INFO: Starting with following command line ... mysqlbackup --backup_dir=/u01/dbback/ copy-back
mysqlbackup: INFO: IMPORTANT: Please check that mysqlbackup run completes successfully. At the end of a successful 'copy-back' run mysqlbackup prints "mysqlbackup completed OK!".
150424 08:49:36 mysqlbackup: INFO: MEB logfile created at /u01/dbback/meta/MEB_2015-04-24.08-49-36_copy_back.log
mysqlbackup: WARNING: If you restore to a server of a different version, the innodb_data_file_path parameter might have a different default. In that case you need to add 'innodb_data_file_path=ibdata1:12M:autoextend' to the target server configuration. -------------------------------------------------------------------- Server Repository Options: -------------------------------------------------------------------- datadir = /usr/local/mysql/data innodb_data_home_dir = /usr/local/mysql/data innodb_data_file_path = ibdata1:12M:autoextend innodb_log_group_home_dir = /usr/local/mysql/data innodb_log_files_in_group = 3 innodb_log_file_size = 512M innodb_page_size = Null innodb_checksum_algorithm = innodb
-------------------------------------------------------------------- Backup Config Options: -------------------------------------------------------------------- datadir = /u01/dbback/datadir innodb_data_home_dir = /u01/dbback/datadir innodb_data_file_path = ibdata1:12M:autoextend innodb_log_group_home_dir = /u01/dbback/datadir innodb_log_files_in_group = 3 innodb_log_file_size = 536870912 innodb_page_size = 16384 innodb_checksum_algorithm = innodb
mysqlbackup: INFO: Creating 14 buffers each of size 16777216. 150424 08:49:36 mysqlbackup: INFO: Copy-back operation starts with following threads 1 read-threads 1 write-threads 150424 08:49:36 mysqlbackup: INFO: Copying /u01/dbback/datadir/ibdata1. 150424 08:49:37 mysqlbackup: INFO: Copying /u01/dbback/datadir/employees/departments.ibd. 150424 08:49:37 mysqlbackup: INFO: Copying /u01/dbback/datadir/employees/dept_emp.ibd. 150424 08:49:37 mysqlbackup: INFO: Copying /u01/dbback/datadir/employees/dept_manager.ibd. 150424 08:49:37 mysqlbackup: INFO: Copying /u01/dbback/datadir/employees/employees.ibd. 150424 08:49:38 mysqlbackup: INFO: Copying /u01/dbback/datadir/employees/salaries.ibd. mysqlbackup: Progress in MB: 200 150424 08:49:41 mysqlbackup: INFO: Copying /u01/dbback/datadir/employees/titles.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/mysql/innodb_index_stats.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/mysql/innodb_table_stats.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/mysql/slave_master_info.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/mysql/slave_relay_log_info.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/mysql/slave_worker_info.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/actor.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/address.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/category.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/city.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/country.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/customer.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/film.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/film_actor.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/film_category.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/inventory.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/language.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/payment.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/rental.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/staff.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sakila/store.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sztech/dept.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sztech/emp.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sztech/emp_bak.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/sztech/emp_bak1.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/world/city.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/world/country.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/world/countrylanguage.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/world/deletedcity.ibd. 150424 08:49:42 mysqlbackup: INFO: Copying /u01/dbback/datadir/world/mytable.ibd. 150424 08:49:42 mysqlbackup: INFO: Starting to copy Binlog files... 150424 08:49:42 mysqlbackup: INFO: Copying the database directory 'employees' 150424 08:49:42 mysqlbackup: INFO: Copying the database directory 'innodb_memcache' 150424 08:49:42 mysqlbackup: INFO: Copying the database directory 'mysql' 150424 08:49:43 mysqlbackup: INFO: Copying the database directory 'performance_schema' 150424 08:49:43 mysqlbackup: INFO: Copying the database directory 'sakila' 150424 08:49:43 mysqlbackup: INFO: Copying the database directory 'sys' 150424 08:49:43 mysqlbackup: INFO: Copying the database directory 'sztech' 150424 08:49:43 mysqlbackup: INFO: Copying the database directory 'test' 150424 08:49:43 mysqlbackup: INFO: Copying the database directory 'world' 150424 08:49:43 mysqlbackup: INFO: Completing the copy of all non-innodb files. 150424 08:49:43 mysqlbackup: INFO: Completed the copy of binlog files... 150424 08:49:43 mysqlbackup: INFO: Copying the log file 'ib_logfile0' mysqlbackup: Progress in MB: 400 600 800 150424 08:49:44 mysqlbackup: INFO: Copying the log file 'ib_logfile1' mysqlbackup: Progress in MB: 1000 1200 150424 08:49:47 mysqlbackup: INFO: Copying the log file 'ib_logfile2' mysqlbackup: Progress in MB: 1400 1600 1800 150424 08:49:50 mysqlbackup: INFO: Creating server config files server-my.cnf and server-all.cnf in /usr/local/mysql/data 150424 08:49:50 mysqlbackup: INFO: Copy-back operation completed successfully. 150424 08:49:50 mysqlbackup: INFO: Finished copying backup files to '/usr/local/mysql/data'
mysqlbackup completed OK! with 1 warnings
恢复完成,但有警告,经查看,这个警告为:
mysqlbackup: WARNING: If you restore to a server of a different version, the innodb_data_file_path parameter might have a different default. In that case you need to add 'innodb_data_file_path=ibdata1:12M:autoextend' to the target server configuration.
不碍事。
[此贴子已经被作者于2015-04-24 10:50:44编辑过] |