Common parameters of Xtrabackup

Source: Internet
Author: User

Basic command:

--defaults-file: Indicates the server's configuration file, this parameter must be the first parameter of the Innobackupex, otherwise the error

--host: Indicates the host

--user: Indicates the user name of the backup

--password: Indicates the password for the backup user name

--backup: indicated as a backup, this parameter can be ignored

/tmp/backup: The directory to be backed up

--backup: Indicates a backup

--apply-log: Indicate redo log

--copy-back: Indicates the recovery

--slave-info: Back up the show slave status information from the library, used only when backing up from the library

--no-lock: Does not lock the table, only applies to the storage engine is InnoDB, and does not care about the backup location point when using

Incremental backup:

--incremental: Indicates an incremental backup

--incremental-basedir: Indicates that this incremental backup is based on which previous backup, incremental backup only for InnoDB and XTRADB engines

--redo-only: Redo log again for incremental backup during recovery

--incremental-dir: When restoring an incremental backup, indicate the directory for the incremental backup

Partial backup:

--include: Use regular expressions to back up the matches to, for example: Back up the user table in the MySQL library, --include= ' ^mysql[. User '

--table-files: If you are backing up more than one table, you can write multiple tables to a file in the form "database name. Table name" and specify this file when backing up

--databases: You can back up the entire library, or you can back up a table in the library by backing up the table with the "Library name. Table Name" method

--export: This option is used when recovering with partial backups, which differs from full and incremental backups

Advanced command:

Xtrabackup waits for a global lock when performing a backup, and for long-executed statements, it raises the issue of lock contention!

--lock-wait-timeout: Indicates the wait time before flush tables with read lock, 0 means not waiting for the direct execution of the lock Table command, the unit is S, if there is a long time to execute the query beyond the time set by this parameter, The xtrabackup terminates the operation

--lock-wait-query-type: Can be all and update, and if set to all, indicates waiting for all types of statements to execute before executing flush tables with read lock; If you set update, you wait for the SQL statement to complete except Select, and then perform a lock table operation

--kill-long-queries-timeout: Number of seconds to wait after executing flush tables with read lock

--kill-long-query-type: Can be all and select; If all, indicates the number of seconds to wait, forcing all queries to be terminated, or select to force termination of a query of select type


This article is from the "burning Years of Passion" blog, please be sure to keep this source http://liuzhengwei521.blog.51cto.com/4855442/1882510

Common parameters of Xtrabackup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.