Repository navigation
PXB-3662 [DOCS] - Improve the documentation of mutual exclusion behav… - #546
Open
patrickbirch wants to merge 2 commits into
Open
patrickbirch wants to merge 2 commits into
patrickbirch wants to merge 2 commits into
Conversation
…iour with --tables and --databases 8.4 modified: docs/create-partial-backup.md diff --git a/docs/create-partial-backup.md b/docs/create-partial-backup.md index 880b247..48b62ce 100644 --- a/docs/create-partial-backup.md +++ b/docs/create-partial-backup.md @@ -19,8 +19,32 @@ There are multiple ways of specifying which part of data is backed up: Use the `--databases-file` option to list the databases +The `--tables` and `--databases` options are mutually exclusive. If you use both options in the same command, XtraBackup ignores `--databases` and only uses `--tables`. Use only one of these options per backup operation. + The following examples assume a database named `test` that contains tables named `t1` and `t2`. Run all the commands as root or use the sudo command. +Only `--databases`: + +```shell +xtrabackup --backup --datadir=/var/lib/mysql --target-dir=/data/backups/ \ +--databases='mysql sys performance_schema test' +``` + +Only `--tables`: + +```shell +xtrabackup --backup --datadir=/var/lib/mysql --target-dir=/data/backups/ \ +--tables="^test[.]t1" +``` + +Both options. XtraBackup ignores `--databases` and backs up only tables matching `--tables`: + +```shell +xtrabackup --backup --datadir=/var/lib/mysql --target-dir=/data/backups/ \ +--databases='mysql sys performance_schema test' \ +--tables="^test[.]t1" +``` + === "`–-tables` option" The first method involves the xtrabackup `–tables` option. The option’s
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…iour with --tables and --databases 8.4
The following examples assume a database named
testthat contains tables namedt1andt2. Run all the commands as root or use the sudo command.=== "
–-tablesoption"