From 9146fe23495b6f01cbae976591015d1f8b210c1d Mon Sep 17 00:00:00 2001 From: A1EF <18084006+A1EF@users.noreply.github.com> Date: Sun, 7 Jun 2026 21:16:06 +0000 Subject: [PATCH] Update create-partial-backup.md From `man xtrabackup`: ``` The --databases and --databases-file options The ` --databases` option accepts a space-separated list of the databases and tables to backup in the databasename[.tablename] format. In addition to this list, make sure to specify the mysql, sys, and performance_schema databases. These databases are required when restoring the databases using xtrabackup --copy-back. NOTE: Tables processed during the --prepare step may also be added to the backup even if they are not explicitly listed by the parameter if they were created after the backup started. $ xtrabackup --databases='mysql sys performance_schema test ...' ``` --- docs/create-partial-backup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/create-partial-backup.md b/docs/create-partial-backup.md index fd05146d8..8f41c59df 100644 --- a/docs/create-partial-backup.md +++ b/docs/create-partial-backup.md @@ -82,7 +82,7 @@ $ xtrabackup --backup --tables-file=/tmp/tables.txt ## The `--databases` and `-–databases-file` options -The `--databases` option accepts a comma-separated list of database names. To include all tables in a database, add `.*` after the database name (for example, `mydb.*`). Regular expressions are not supported. +The `--databases` option accepts a space-separated list of database names. To include all tables in a database, add `.*` after the database name (for example, `mydb.*`). Regular expressions are not supported. In addition to your selected databases, make sure to specify the `mysql`, `sys`, and `performance_schema` databases. These databases are required when restoring the databases using xtrabackup `--copy-back`. @@ -93,7 +93,7 @@ In addition to your selected databases, make sure to specify the `mysql`, `sys`, after the backup started. ```{.bash data-prompt="$"} -$ xtrabackup --backup --databases='mysql,sys,performance_schema,test' --target-dir=/data/backups/ +$ xtrabackup --backup --databases='mysql sys performance_schema test' --target-dir=/data/backups/ ``` ## The `--databases-file` option