搜尋
首頁資料庫mysql教程MySQL Compressed Backup_MySQL

bitsCN.com

MySQL Compressed Backup
 

[root@test zwc]# ls -lh  total 953M  -rw-rw---- 1 mysql mysql   61 Nov  3 22:03 db.opt  -rw-rw---- 1 mysql mysql 8.5K Nov  3 22:10 t1.frm  -rw-rw---- 1 mysql mysql 191M Nov  3 22:25 t1.MYD  -rw-rw---- 1 mysql mysql 295M Nov  3 22:42 t1.MYI  -rw-rw---- 1 mysql mysql 8.4K Nov  3 22:11 t2.frm  -rw-rw---- 1 mysql mysql 468M Nov  3 22:40 t2.ibd  Using MEBnormal backup[root@test backup]# time /service/mysql5.5/bin/mysqlbackup --user=root --backup-dir=/backup/meb_normal backup-and-apply-log --socket=/data/mysql5.5/mysql.sock --password  MySQL Enterprise Backup version 3.8.2 [2013/06/18]   Copyright (c) 2003, 2012, Oracle and/or its affiliates. All Rights Reserved.   mysqlbackup: INFO: Starting with following command line ...  /service/mysql5.5/bin/mysqlbackup --user=root           --backup-dir=/backup/meb_normal backup-and-apply-log           --socket=/data/mysql5.5/mysql.sock --password   

 

Enter password:  
mysqlbackup: INFO: MySQL server version is '5.5.25-log'. 
mysqlbackup: INFO: Got some server configuration information from running server.  

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

--------------------------------------------------------------------                         Server Repository Options:  --------------------------------------------------------------------    datadir = /data/mysql5.5/    innodb_data_home_dir =     innodb_data_file_path = ibdata1:10M:autoextend    innodb_log_group_home_dir = /data/mysql5.5/    innodb_log_files_in_group = 3    innodb_log_file_size = 536870912    innodb_page_size = Null    innodb_checksum_algorithm = innodb  --------------------------------------------------------------------                         Backup Config Options:  --------------------------------------------------------------------    datadir = /backup/meb_normal/datadir    innodb_data_home_dir = /backup/meb_normal/datadir    innodb_data_file_path = ibdata1:10M:autoextend    innodb_log_group_home_dir = /backup/meb_normal/datadir    innodb_log_files_in_group = 3    innodb_log_file_size = 536870912    innodb_page_size = 16384    innodb_checksum_algorithm = innodb  

 

 

mysqlbackup: INFO: Unique generated backup id for this is 13834928576619365   mysqlbackup: INFO: Uses posix_fadvise() for performance optimization.  mysqlbackup: INFO: Creating 14 buffers each of size 16777216.  131103 23:34:19 mysqlbackup: INFO: Full Backup operation starts with following threads                  1 read-threads    6 process-threads    1 write-threads  131103 23:34:19 mysqlbackup: INFO: System tablespace file format is Antelope.  131103 23:34:19 mysqlbackup: INFO: Starting to copy all innodb files...  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/ibdata1 (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Found checkpoint at lsn 3406071002.  131103 23:34:19 mysqlbackup: INFO: Starting log scan from lsn 3406070784.  131103 23:34:19 mysqlbackup: INFO: Copying log...  131103 23:34:19 mysqlbackup: INFO: Log copied, lsn 3406071002.  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_global_qs_variables.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_global_script_report_data.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_global_split_column_names_table.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_global_sql_tokens.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_known_thread_states.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_named_scripts.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_script_statements.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_waits.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/help_content.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/metadata.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/numbers.ibd (Antelope file format).  131103 23:34:19 mysqlbackup: INFO: Copying /data/mysql5.5/zwc/t2.ibd (Antelope file format).  mysqlbackup: Progress in MB: 200 400   131103 23:34:31 mysqlbackup: INFO: Completing the copy of innodb files.  131103 23:34:32 mysqlbackup: INFO: Preparing to lock tables: Connected to mysqld server.  131103 23:34:32 mysqlbackup: INFO: Starting to lock all the tables...  131103 23:34:32 mysqlbackup: INFO: All tables are locked and flushed to disk  131103 23:34:32 mysqlbackup: INFO: Opening backup source directory '/data/mysql5.5/'  131103 23:34:32 mysqlbackup: INFO: Starting to backup all non-innodb files in           subdirectories of '/data/mysql5.5/'  131103 23:34:32 mysqlbackup: INFO: Copying the database directory 'common_schema'  131103 23:34:32 mysqlbackup: INFO: Copying the database directory 'mysql'  131103 23:34:32 mysqlbackup: INFO: Copying the database directory 'performance_schema'  131103 23:34:32 mysqlbackup: INFO: Copying the database directory 'test'  131103 23:34:32 mysqlbackup: INFO: Copying the database directory 'zwc'  mysqlbackup: Progress in MB: 600 800   131103 23:34:43 mysqlbackup: INFO: Completing the copy of all non-innodb files.  131103 23:34:46 mysqlbackup: INFO: A copied database page was modified at 3406071002.            (This is the highest lsn found on page)            Scanned log up to lsn 3406074168.            Was able to parse the log up to lsn 3406074168.            Maximum page number for a log record 312  131103 23:34:46 mysqlbackup: INFO: All tables unlocked  131103 23:34:46 mysqlbackup: INFO: All MySQL tables were locked for 14.202 seconds.  131103 23:34:46 mysqlbackup: INFO: Full Backup operation completed successfully.  131103 23:34:46 mysqlbackup: INFO: Backup created in directory '/backup/meb_normal'  131103 23:34:46 mysqlbackup: INFO: MySQL binlog position: filename ZWC-TEST.000015, position 11153  

 

-------------------------------------------------------------     Parameters Summary           -------------------------------------------------------------     Start LSN                  : 3406070784     End LSN                    : 3406074168  -------------------------------------------------------------    mysqlbackup: INFO: Creating 14 buffers each of size 65536.  131103 23:34:46 mysqlbackup: INFO: Apply-log operation starts with following threads                  1 read-threads    1 process-threads  131103 23:34:46 mysqlbackup: INFO: ibbackup_logfile's creation parameters:            start lsn 3406070784, end lsn 3406074168,            start checkpoint 3406071002.  mysqlbackup: INFO: InnoDB: Starting an apply batch of log records to the database...  InnoDB: Progress in percent: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 Setting log file size to 536870912  InnoDB: Progress in MB: 100 200 300 400 500  Setting log file size to 536870912  InnoDB: Progress in MB: 100 200 300 400 500  Setting log file size to 536870912  InnoDB: Progress in MB: 100 200 300 400 500  131103 23:35:08 mysqlbackup: INFO: We were able to parse ibbackup_logfile up to            lsn 3406074168.  mysqlbackup: INFO: Last MySQL binlog file position 0 11153, file name ./ZWC-TEST.000015  131103 23:35:08 mysqlbackup: INFO: The first data file is '/backup/meb_normal/datadir/ibdata1'            and the new created log files are at '/backup/meb_normal/datadir'  131103 23:35:08 mysqlbackup: INFO: Apply-log operation completed successfully.  131103 23:35:08 mysqlbackup: INFO: Full backup prepared for recovery successfully.  mysqlbackup completed OK!  real    0m54.611s  user    0m1.119s  sys     0m3.415s  [root@test backup]#   [root@test backup]#   [root@test backup]# du -sh /backup/meb_normal  2.5G    /backup/meb_normal  compressed backup[root@test backup]# time /service/mysql5.5/bin/mysqlbackup --user=root --backup-dir=/backup/meb_compressed --compress --socket=/data/mysql5.5/mysql.sock --password backup  MySQL Enterprise Backup version 3.8.2 [2013/06/18]   Copyright (c) 2003, 2012, Oracle and/or its affiliates. All Rights Reserved.   mysqlbackup: INFO: Starting with following command line ...  /service/mysql5.5/bin/mysqlbackup --user=root           --backup-dir=/backup/meb_compressed --compress           --socket=/data/mysql5.5/mysql.sock --password backup   

 

Enter password:  
mysqlbackup: INFO: MySQL server version is '5.5.25-log'. 
mysqlbackup: INFO: Got some server configuration information from running server.  

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

--------------------------------------------------------------------                         Server Repository Options:  --------------------------------------------------------------------    datadir = /data/mysql5.5/    innodb_data_home_dir =     innodb_data_file_path = ibdata1:10M:autoextend    innodb_log_group_home_dir = /data/mysql5.5/    innodb_log_files_in_group = 3    innodb_log_file_size = 536870912    innodb_page_size = Null    innodb_checksum_algorithm = innodb  --------------------------------------------------------------------                         Backup Config Options:  --------------------------------------------------------------------    datadir = /backup/meb_compressed/datadir    innodb_data_home_dir = /backup/meb_compressed/datadir    innodb_data_file_path = ibdata1:10M:autoextend    innodb_log_group_home_dir = /backup/meb_compressed/datadir    innodb_log_files_in_group = 3    innodb_log_file_size = 536870912    innodb_page_size = 16384    innodb_checksum_algorithm = innodb   mysqlbackup: INFO: Unique generated backup id for this is 13834930694674075   mysqlbackup: INFO: Uses posix_fadvise() for performance optimization.  mysqlbackup: INFO: Creating 18 buffers each of size 16794070.  131103 23:37:51 mysqlbackup: INFO: Compress Backup operation starts with following threads                  1 read-threads    6 process-threads    1 write-threads  131103 23:37:51 mysqlbackup: INFO: System tablespace file format is Antelope.  131103 23:37:51 mysqlbackup: INFO: Starting to copy all innodb files...  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/ibdata1 (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Found checkpoint at lsn 3406075519.  131103 23:37:51 mysqlbackup: INFO: Starting log scan from lsn 3406075392.  131103 23:37:51 mysqlbackup: INFO: Copying log...  131103 23:37:51 mysqlbackup: INFO: Log copied, lsn 3406075519.  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_global_qs_variables.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_global_script_report_data.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_global_split_column_names_table.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_global_sql_tokens.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_known_thread_states.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_named_scripts.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_script_statements.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/_waits.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/help_content.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/metadata.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/common_schema/numbers.ibd (Antelope file format).  131103 23:37:51 mysqlbackup: INFO: Copying /data/mysql5.5/zwc/t2.ibd (Antelope file format).  mysqlbackup: Progress in MB: 200 400   131103 23:37:59 mysqlbackup: INFO: Completing the copy of innodb files.  131103 23:38:02 mysqlbackup: INFO: Preparing to lock tables: Connected to mysqld server.  131103 23:38:02 mysqlbackup: INFO: Starting to lock all the tables...  131103 23:38:02 mysqlbackup: INFO: All tables are locked and flushed to disk  131103 23:38:02 mysqlbackup: INFO: Opening backup source directory '/data/mysql5.5/'  131103 23:38:02 mysqlbackup: INFO: Starting to backup all non-innodb files in           subdirectories of '/data/mysql5.5/'  131103 23:38:02 mysqlbackup: INFO: Copying the database directory 'common_schema'  131103 23:38:02 mysqlbackup: INFO: Copying the database directory 'mysql'  131103 23:38:03 mysqlbackup: INFO: Copying the database directory 'performance_schema'  131103 23:38:03 mysqlbackup: INFO: Copying the database directory 'test'  131103 23:38:03 mysqlbackup: INFO: Copying the database directory 'zwc'  mysqlbackup: Progress in MB: 600 800   131103 23:38:14 mysqlbackup: INFO: Completing the copy of all non-innodb files.  131103 23:38:16 mysqlbackup: INFO: A copied database page was modified at 3406075519.            (This is the highest lsn found on page)            Scanned log up to lsn 3406078687.            Was able to parse the log up to lsn 3406078687.            Maximum page number for a log record 316  131103 23:38:16 mysqlbackup: INFO: All tables unlocked  131103 23:38:16 mysqlbackup: INFO: All MySQL tables were locked for 13.426 seconds.  131103 23:38:16 mysqlbackup: INFO: Compressed 496 MB of data files to 200573 kbytes (compression 60.51%).  131103 23:38:16 mysqlbackup: INFO: Compress Backup operation completed successfully.  131103 23:38:16 mysqlbackup: INFO: Backup created in directory '/backup/meb_compressed'  131103 23:38:16 mysqlbackup: INFO: MySQL binlog position: filename ZWC-TEST.000015, position 16895  

 

-------------------------------------------------------------     Parameters Summary           -------------------------------------------------------------     Start LSN                  : 3406075392     End LSN                    : 3406078687  -------------------------------------------------------------  mysqlbackup completed OK!  real    0m29.922s  user    0m9.333s  sys     0m1.924s  [root@test backup]#   [root@test backup]#   [root@test backup]# du -sh /backup/meb_compressed  684M    /backup/meb_compressed  [root@test zwc]# ll -h /backup/meb_compressed/datadir/zwc  total 680M  -rw-r--r-- 1 root root   61 Nov  3 23:38 db.opt  -rw-r--r-- 1 root root 8.5K Nov  3 23:38 t1.frm  -rw-r--r-- 1 root root 191M Nov  3 23:38 t1.MYD  -rw-r--r-- 1 root root 295M Nov  3 23:38 t1.MYI  -rw-r--r-- 1 root root 8.4K Nov  3 23:38 t2.frm  -rw-r--r-- 1 root root 195M Nov  3 23:38 t2.ibz  Innodb Tablespace compressed independently .ibz suffix, MyISAM uncompressed!Using XtraBackupnormal backup[root@test backup]# time innobackupex --defaults-file=/service/mysql5.5/my.cnf  --rsync --user=root --no-timestamp --password=root /backup/xtra_normal  InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy  and Percona LLC and/or its affiliates 2009-2013.  All Rights Reserved.  This software is published under  the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.  131104 00:17:55  innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_file=/service/mysql5.5/my.cnf;mysql_read_default_group=xtrabackup' as 'root'  (using password: YES).  131104 00:17:55  innobackupex: Connected to MySQL server  IMPORTANT: Please check that the backup run completes successfully.             At the end of a successful backup run innobackupex             prints "completed OK!".  innobackupex: Using mysql server version 5.5.25-log  innobackupex: Created backup directory /backup/xtra_normal  131104 00:17:55  innobackupex: Starting ibbackup with command: xtrabackup_55  --defaults-file="/service/mysql5.5/my.cnf"  --defaults-group="mysqld" --backup --suspend-at-end --target-dir=/backup/xtra_normal --tmpdir=/tmp  innobackupex: Waiting for ibbackup (pid=4569) to suspend  innobackupex: Suspend file '/backup/xtra_normal/xtrabackup_suspended_2'  xtrabackup_55 version 2.1.5 for Percona Server 5.5.31 Linux (x86_64) (revision id: 680)  xtrabackup: uses posix_fadvise().  xtrabackup: cd to /data/mysql5.5  xtrabackup: using the following InnoDB configuration:  xtrabackup:   innodb_data_home_dir = ./  xtrabackup:   innodb_data_file_path = ibdata1:10M:autoextend  xtrabackup:   innodb_log_group_home_dir = ./  xtrabackup:   innodb_log_files_in_group = 3  xtrabackup:   innodb_log_file_size = 536870912  xtrabackup: using O_DIRECT  >> log scanned up to (3406079293)  131104  0:17:55  InnoDB: Warning: allocated tablespace 23, old maximum was 9  [01] Copying ./ibdata1 to /backup/xtra_normal/ibdata1  [01]        ...done  [01] Copying ./zwc/t2.ibd to /backup/xtra_normal/zwc/t2.ibd  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  [01]        ...done  [01] Copying ./common_schema/_global_script_report_data.ibd to /backup/xtra_normal/common_schema/_global_script_report_data.ibd  [01]        ...done  [01] Copying ./common_schema/_named_scripts.ibd to /backup/xtra_normal/common_schema/_named_scripts.ibd  [01]        ...done  [01] Copying ./common_schema/help_content.ibd to /backup/xtra_normal/common_schema/help_content.ibd  [01]        ...done  [01] Copying ./common_schema/_waits.ibd to /backup/xtra_normal/common_schema/_waits.ibd  [01]        ...done  [01] Copying ./common_schema/metadata.ibd to /backup/xtra_normal/common_schema/metadata.ibd  [01]        ...done  [01] Copying ./common_schema/_known_thread_states.ibd to /backup/xtra_normal/common_schema/_known_thread_states.ibd  [01]        ...done  [01] Copying ./common_schema/_global_sql_tokens.ibd to /backup/xtra_normal/common_schema/_global_sql_tokens.ibd  [01]        ...done  [01] Copying ./common_schema/_script_statements.ibd to /backup/xtra_normal/common_schema/_script_statements.ibd  [01]        ...done  [01] Copying ./common_schema/_global_split_column_names_table.ibd to /backup/xtra_normal/common_schema/_global_split_column_names_table.ibd  [01]        ...done  [01] Copying ./common_schema/_global_qs_variables.ibd to /backup/xtra_normal/common_schema/_global_qs_variables.ibd  [01]        ...done  >> log scanned up to (3406079293)  [01] Copying ./common_schema/numbers.ibd to /backup/xtra_normal/common_schema/numbers.ibd  [01]        ...done  xtrabackup: Creating suspend file '/backup/xtra_normal/xtrabackup_suspended_2' with pid '4569'  131104 00:18:13  innobackupex: Continuing after ibbackup has suspended  131104 00:18:13  innobackupex: Starting a prep copy of non-InnoDB tables and files  innobackupex: in subdirectories of '/data/mysql5.5'  innobackupex: Backing up file '/data/mysql5.5/zwc/t2.frm'  innobackupex: Backing up file '/data/mysql5.5/zwc/db.opt'  innobackupex: Backing up file '/data/mysql5.5/zwc/t1.MYI'  innobackupex: Backing up file '/data/mysql5.5/zwc/t1.MYD'  innobackupex: Backing up file '/data/mysql5.5/zwc/t1.frm'  innobackupex: Backing up files '/data/mysql5.5/common_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (95 files)  innobackupex: Backing up files '/data/mysql5.5/mysql/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (78 files)  innobackupex: Backing up files '/data/mysql5.5/performance_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (18 files)  131104 00:18:13 Starting rsync as: rsync -t "/data/mysql5.5" --files-from="/tmp/xtrabackup_rsyncfiles_pass1" "/backup/xtra_normal"  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  131104 00:18:22 rsync finished successfully.  131104 00:18:22  innobackupex: Finished a prep copy of non-InnoDB tables and files  131104 00:18:22  innobackupex: Starting to lock all tables...  131104 00:18:23  innobackupex: All tables locked and flushed to disk  131104 00:18:23  innobackupex: Starting to backup non-InnoDB tables and files  innobackupex: in subdirectories of '/data/mysql5.5'  innobackupex: Backing up file '/data/mysql5.5/zwc/t2.frm'  innobackupex: Backing up file '/data/mysql5.5/zwc/db.opt'  innobackupex: Backing up file '/data/mysql5.5/zwc/t1.MYI'  innobackupex: Backing up file '/data/mysql5.5/zwc/t1.MYD'  innobackupex: Backing up file '/data/mysql5.5/zwc/t1.frm'  innobackupex: Backing up files '/data/mysql5.5/common_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (95 files)  innobackupex: Backing up files '/data/mysql5.5/mysql/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (78 files)  innobackupex: Backing up files '/data/mysql5.5/performance_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (18 files)  131104 00:18:23 Starting rsync as: rsync -t "/data/mysql5.5" --files-from="/tmp/xtrabackup_rsyncfiles_pass2" "/backup/xtra_normal"  131104 00:18:23 rsync finished successfully.  131104 00:18:23  innobackupex: Finished backing up non-InnoDB tables and files  131104 00:18:23  innobackupex: Waiting for log copying to finish  >> log scanned up to (3406079293)  xtrabackup: The latest check point (for incremental): '3406079293'  xtrabackup: Stopping log copying thread.  .>> log scanned up to (3406079293)  xtrabackup: Creating suspend file '/backup/xtra_normal/xtrabackup_log_copied' with pid '4569'  xtrabackup: Transaction log of lsn (3406079293) to (3406079293) was copied.  131104 00:18:24  innobackupex: All tables unlocked  innobackupex: Backup created in directory '/backup/xtra_normal'  innobackupex: MySQL binlog position: filename 'ZWC-TEST.000015', position 20185  131104 00:18:24  innobackupex: Connection to database server closed  131104 00:18:24  innobackupex: completed OK!  real    0m29.516s  user    0m3.302s  sys     0m3.911s  [root@test backup]#   [root@test backup]#   [root@test backup]# du -sh /backup/xtra_normal  984M    /backup/xtra_normal  compressed backup[root@test backup]# time innobackupex --defaults-file=/service/mysql5.5/my.cnf --user=root --no-timestamp --password=idontcare --stream=tar ./ | gzip - > /backup/xtra_compressed.tar.gz  InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy  and Percona LLC and/or its affiliates 2009-2013.  All Rights Reserved.  This software is published under  the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.  131104 00:22:29  innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_file=/service/mysql5.5/my.cnf;mysql_read_default_group=xtrabackup' as 'root'  (using password: YES).  131104 00:22:29  innobackupex: Connected to MySQL server  IMPORTANT: Please check that the backup run completes successfully.             At the end of a successful backup run innobackupex             prints "completed OK!".  innobackupex: Using mysql server version 5.5.25-log  innobackupex: Created backup directory /backup  131104 00:22:29  innobackupex: Starting ibbackup with command: xtrabackup_55  --defaults-file="/service/mysql5.5/my.cnf"  --defaults-group="mysqld" --backup --suspend-at-end --target-dir=/tmp --tmpdir=/tmp --stream=tar  innobackupex: Waiting for ibbackup (pid=4648) to suspend  innobackupex: Suspend file '/tmp/xtrabackup_suspended_2'  xtrabackup_55 version 2.1.5 for Percona Server 5.5.31 Linux (x86_64) (revision id: 680)  xtrabackup: uses posix_fadvise().  xtrabackup: cd to /data/mysql5.5  xtrabackup: using the following InnoDB configuration:  xtrabackup:   innodb_data_home_dir = ./  xtrabackup:   innodb_data_file_path = ibdata1:10M:autoextend  xtrabackup:   innodb_log_group_home_dir = ./  xtrabackup:   innodb_log_files_in_group = 3  xtrabackup:   innodb_log_file_size = 536870912  xtrabackup: using O_DIRECT  >> log scanned up to (3406079293)  131104  0:22:29  InnoDB: Warning: allocated tablespace 23, old maximum was 9  [01] Streaming ./ibdata1  [01]        ...done  [01] Streaming ./zwc/t2.ibd  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  [01]        ...done  [01] Streaming ./common_schema/_global_script_report_data.ibd  [01]        ...done  [01] Streaming ./common_schema/_named_scripts.ibd  [01]        ...done  [01] Streaming ./common_schema/help_content.ibd  [01]        ...done  [01] Streaming ./common_schema/_waits.ibd  [01]        ...done  [01] Streaming ./common_schema/metadata.ibd  [01]        ...done  [01] Streaming ./common_schema/_known_thread_states.ibd  [01]        ...done  [01] Streaming ./common_schema/_global_sql_tokens.ibd  [01]        ...done  [01] Streaming ./common_schema/_script_statements.ibd  [01]        ...done  [01] Streaming ./common_schema/_global_split_column_names_table.ibd  [01]        ...done  [01] Streaming ./common_schema/_global_qs_variables.ibd  [01]        ...done  [01] Streaming ./common_schema/numbers.ibd  [01]        ...done  >> log scanned up to (3406079293)  xtrabackup: Creating suspend file '/tmp/xtrabackup_suspended_2' with pid '4648'  131104 00:23:02  innobackupex: Continuing after ibbackup has suspended  131104 00:23:02  innobackupex: Starting to lock all tables...  131104 00:23:02  innobackupex: All tables locked and flushed to disk  131104 00:23:02  innobackupex: Starting to backup non-InnoDB tables and files  innobackupex: in subdirectories of '/data/mysql5.5'  innobackupex: Backing up file '/data/mysql5.5/zwc/t2.frm'  innobackupex: Backing up file '/data/mysql5.5/zwc/db.opt'  innobackupex: Backing up file '/data/mysql5.5/zwc/t1.MYI'  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  innobackupex: Backing up file '/data/mysql5.5/zwc/t1.MYD'  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  >> log scanned up to (3406079293)  innobackupex: Backing up file '/data/mysql5.5/zwc/t1.frm'  innobackupex: Backing up files '/data/mysql5.5/common_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (95 files)  >> log scanned up to (3406079293)  innobackupex: Backing up files '/data/mysql5.5/mysql/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (78 files)  innobackupex: Backing up files '/data/mysql5.5/performance_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (18 files)  131104 00:23:30  innobackupex: Finished backing up non-InnoDB tables and files  131104 00:23:30  innobackupex: Waiting for log copying to finish  xtrabackup: The latest check point (for incremental): '3406079293'  xtrabackup: Stopping log copying thread.  .>> log scanned up to (3406079293)  xtrabackup: Creating suspend file '/tmp/xtrabackup_log_copied' with pid '4648'  xtrabackup: Transaction log of lsn (3406079293) to (3406079293) was copied.  131104 00:23:31  innobackupex: All tables unlocked  innobackupex: Backup created in directory '/backup'  innobackupex: MySQL binlog position: filename 'ZWC-TEST.000015', position 20185  131104 00:23:31  innobackupex: Connection to database server closed  innobackupex: You must use -i (--ignore-zeros) option for extraction of the tar stream.  131104 00:23:31  innobackupex: completed OK!  real    1m2.854s  user    0m45.188s  sys     0m9.802s  [root@test backup]#   [root@test backup]#   [root@test backup]# ls -lh /backup/xtra_compressed.tar.gz   -rw-r--r-- 1 root root 255M Nov  4 00:23 /backup/xtra_compressed.tar.gz  [root@test tmp]# tar xvfzi xtra_compressed.tar.gz  Uncompressed need  add "-i" parameter

 

 


bitsCN.com
陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
MySQL與Sqlite有何不同?MySQL與Sqlite有何不同?Apr 24, 2025 am 12:12 AM

MySQL和SQLite的主要區別在於設計理念和使用場景:1.MySQL適用於大型應用和企業級解決方案,支持高性能和高並發;2.SQLite適合移動應用和桌面軟件,輕量級且易於嵌入。

MySQL中的索引是什麼?它們如何提高性能?MySQL中的索引是什麼?它們如何提高性能?Apr 24, 2025 am 12:09 AM

MySQL中的索引是數據庫表中一列或多列的有序結構,用於加速數據檢索。 1)索引通過減少掃描數據量提升查詢速度。 2)B-Tree索引利用平衡樹結構,適合範圍查詢和排序。 3)創建索引使用CREATEINDEX語句,如CREATEINDEXidx_customer_idONorders(customer_id)。 4)複合索引可優化多列查詢,如CREATEINDEXidx_customer_orderONorders(customer_id,order_date)。 5)使用EXPLAIN分析查詢計劃,避

說明如何使用MySQL中的交易來確保數據一致性。說明如何使用MySQL中的交易來確保數據一致性。Apr 24, 2025 am 12:09 AM

在MySQL中使用事務可以確保數據一致性。 1)通過STARTTRANSACTION開始事務,執行SQL操作後用COMMIT提交或ROLLBACK回滾。 2)使用SAVEPOINT可以設置保存點,允許部分回滾。 3)性能優化建議包括縮短事務時間、避免大規模查詢和合理使用隔離級別。

在哪些情況下,您可以選擇PostgreSQL而不是MySQL?在哪些情況下,您可以選擇PostgreSQL而不是MySQL?Apr 24, 2025 am 12:07 AM

選擇PostgreSQL而非MySQL的場景包括:1)需要復雜查詢和高級SQL功能,2)要求嚴格的數據完整性和ACID遵從性,3)需要高級空間功能,4)處理大數據集時需要高性能。 PostgreSQL在這些方面表現出色,適合需要復雜數據處理和高數據完整性的項目。

如何保護MySQL數據庫?如何保護MySQL數據庫?Apr 24, 2025 am 12:04 AM

MySQL數據庫的安全可以通過以下措施實現:1.用戶權限管理:通過CREATEUSER和GRANT命令嚴格控制訪問權限。 2.加密傳輸:配置SSL/TLS確保數據傳輸安全。 3.數據庫備份和恢復:使用mysqldump或mysqlpump定期備份數據。 4.高級安全策略:使用防火牆限制訪問,並啟用審計日誌記錄操作。 5.性能優化與最佳實踐:通過索引和查詢優化以及定期維護兼顧安全和性能。

您可以使用哪些工具來監視MySQL性能?您可以使用哪些工具來監視MySQL性能?Apr 23, 2025 am 12:21 AM

如何有效監控MySQL性能?使用mysqladmin、SHOWGLOBALSTATUS、PerconaMonitoringandManagement(PMM)和MySQLEnterpriseMonitor等工具。 1.使用mysqladmin查看連接數。 2.用SHOWGLOBALSTATUS查看查詢數。 3.PMM提供詳細性能數據和圖形化界面。 4.MySQLEnterpriseMonitor提供豐富的監控功能和報警機制。

MySQL與SQL Server有何不同?MySQL與SQL Server有何不同?Apr 23, 2025 am 12:20 AM

MySQL和SQLServer的区别在于:1)MySQL是开源的,适用于Web和嵌入式系统,2)SQLServer是微软的商业产品,适用于企业级应用。两者在存储引擎、性能优化和应用场景上有显著差异,选择时需考虑项目规模和未来扩展性。

在哪些情況下,您可以選擇SQL Server而不是MySQL?在哪些情況下,您可以選擇SQL Server而不是MySQL?Apr 23, 2025 am 12:20 AM

在需要高可用性、高級安全性和良好集成性的企業級應用場景下,應選擇SQLServer而不是MySQL。 1)SQLServer提供企業級功能,如高可用性和高級安全性。 2)它與微軟生態系統如VisualStudio和PowerBI緊密集成。 3)SQLServer在性能優化方面表現出色,支持內存優化表和列存儲索引。

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

WebStorm Mac版

WebStorm Mac版

好用的JavaScript開發工具

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

強大的PHP整合開發環境

SecLists

SecLists

SecLists是最終安全測試人員的伙伴。它是一個包含各種類型清單的集合,這些清單在安全評估過程中經常使用,而且都在一個地方。 SecLists透過方便地提供安全測試人員可能需要的所有列表,幫助提高安全測試的效率和生產力。清單類型包括使用者名稱、密碼、URL、模糊測試有效載荷、敏感資料模式、Web shell等等。測試人員只需將此儲存庫拉到新的測試機上,他就可以存取所需的每種類型的清單。

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)