1、全备份
备份输出
1.1、latest chenk point是
1048637327
1.2、事物日志lsn是 1048637327
1.3、unlock all tables
1.4、MySQL binlog的文件是pm1-bin.00005,pos是 206328934
2、查看master status
与备份的file和pos一致
3、查看备份的信息
备份类型为
full
-
backuped
xtrabackup_info文件中记录了备份时间、binlog_pos、format、compressed等等信息。
4、prepare backup
查看prepare之后的检查点信息
现在的备份类型
full
-
prepared
- root@pm1:/root# innobackupex --user=root --password=111 --database=test /backup
- xtrabackup: The latest check point (for incremental): '1048637327'
- xtrabackup: Stopping log copying thread.
- .>> log scanned up to (1048637327)
-
- xtrabackup: Creating suspend file '/backup/2015-08-02_10-23-40/xtrabackup_log_copied' with pid '29849'
- xtrabackup: Transaction log of lsn (1048637327) to (1048637327) was copied.
- 150802 10:23:49 innobackupex: Executing UNLOCK BINLOG
- 150802 10:23:49 innobackupex: Executing UNLOCK TABLES
- 150802 10:23:49 innobackupex: All tables unlocked
-
- innobackupex: Backup created in directory '/backup/2015-08-02_10-23-40'
- innobackupex: MySQL binlog position: filename 'pm1-bin.000005', position 206328934
- 150802 10:23:49 innobackupex: Connection to database server closed
- 150802 10:23:49 innobackupex: completed
1.2、事物日志lsn是 1048637327
1.3、unlock all tables
1.4、MySQL binlog的文件是pm1-bin.00005,pos是 206328934
2、查看master status
- [root@localhost:test][10:32:24am] MySQL-> show master status\G
- *************************** 1. row ***************************
- File: pm1-bin.000005
- Position: 206328934
- Binlog_Do_DB:
- Binlog_Ignore_DB:
- Executed_Gtid_Set:
- 1 row in set (0.00 sec)
3、查看备份的信息
- root@pm1:/backup/2015-08-02_10-23-40# cat xtrabackup_checkpoints
- backup_type = full-backuped
- from_lsn = 0
- to_lsn = 1048637327
- last_lsn = 1048637327
- compact = 0
- root@pm1:/backup/2015-08-02_10-23-40# cat xtrabackup_info
- uuid = 829b4fff-38bd-11e5-ac42-08002760d8fe
- name =
- tool_name = innobackupex
- tool_command = --user=root --password=... --database=test /backup
- tool_version = 1.5.1-xtrabackup
- ibbackup_version = xtrabackup version 2.2.11 based on MySQL server 5.6.24 Linux (x86_64) (revision id: )
- server_version = 5.6.25-73.0-log
- start_time = 2015-08-02 10:23:40
- end_time = 2015-08-02 10:23:49
- lock_time = 1
- binlog_pos = filename 'pm1-bin.000005', position 206328934
- innodb_from_lsn = 0
- innodb_to_lsn = 1048637327
- partial = Y
- incremental = N
- format = file
- compact = N
- compressed = N
- encrypted = N
4、prepare backup
- root@pm1:/root# innobackupex --user=root --password=111 --database=test --apply-log /backup/2015-08-02_10-23-40
- root@pm1:/backup/2015-08-02_10-23-40# cat xtrabackup_checkpoints
- backup_type = full-prepared
- from_lsn = 0
- to_lsn = 1048637327
- last_lsn = 1048637327
- compact = 0
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12219480/viewspace-1762229/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12219480/viewspace-1762229/