Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/about-xtrabackup.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Percona’s enterprise-grade commercial [MySQL Support :octicons-link-external-1

Percona XtraBackup can back up data from InnoDB, XtraDB, MyISAM, and MyRocks tables on MySQL {{vers}} servers as well as Percona Server for MySQL {{vers}}.

To create a backup of Percona Server for MySQL 9.7.4-4 databases with vector indexes, use Percona XtraBackup 9.7.2-3 or higher. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features).

Percona XtraBackup supports the MyRocks storage engine. Percona XtraBackup copies all MyRocks files on every backup. Incremental backups for MyRocks are not truly incremental: each one copies all MyRocks files, whether or not those files were already in a full or earlier incremental backup.

## Where to go next
Expand Down
11 changes: 11 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,14 @@ Percona XtraBackup will not be able to take a consistent backup. Retry the backu

* To block all DDL operations, use the `--lock-ddl` option that issues `LOCK TABLES FOR BACKUP`.

## Are backups of a database with vector indexes taken with Percona XtraBackup 9.7.2-2 valid?

No. Percona Server for MySQL 9.7.4-4 adds the vector (HNSW) index. If the server has vector indexes, Percona XtraBackup 9.7.2-2 creates invalid backups. The backup and prepare steps can still succeed, so do not trust these backups.

To get a valid backup, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features).

## Can I import an exported tablespace of a table with a vector index?

No. With Percona XtraBackup 9.7.2-3 or higher, `--prepare --export` succeeds and creates the `.cfg` file. You cannot import the tablespace because vector index support is at the minimum viable product (MVP) stage.

For a table with `VECTOR` columns and no vector index, `--prepare --export` and the import of the exported tablespace work starting with Percona XtraBackup 9.7.2-3.
4 changes: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ Incremental backups for MyRocks are not optimized. Each time you run an incremen

InnoDB tables are locked while copying non-InnoDB data.

Percona XtraBackup 9.7.2-2 creates invalid backups of Percona Server for MySQL 9.7.4-4 databases with vector indexes. Use Percona XtraBackup 9.7.2-3 or higher.

!!! admonition "See also"

[Dependency compatibility and limitations](update-curl-utility.md)

[Server version and backup version comparison](server-backup-version-comparison.md)

26 changes: 26 additions & 0 deletions docs/server-backup-version-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ record, can cause older versions of Percona XtraBackup to fail. To
ensure that you can back up and restore your data, use a Percona
XtraBackup version that is equal to your source server major version. This means if you use Percona XtraBackup {{vers}}.x, you can safely back up the source server from {{vers}}.x to {{vers}}.xx.

Some server features require a minimum Percona XtraBackup patch version. See [Minimum Percona XtraBackup version for server features](#minimum-percona-xtrabackup-version-for-server-features).

!!! admonition "See also"

[How XtraBackup works](how-xtrabackup-works.md)
Expand Down Expand Up @@ -42,3 +44,27 @@ When you override the parameter, the following events can happen:
* Creates a corrupted backup

* Backup successful

## Minimum Percona XtraBackup version for server features

Some server features add redo log record types. A Percona XtraBackup version without support for the record type cannot create a backup of a database with the feature.

| Server version | Feature | Minimum Percona XtraBackup version |
| -------------- | ------- | ---------------------------------- |
| Percona Server for MySQL 9.7.4-4 | Vector index | 9.7.2-3 |

### Vector index

Percona Server for MySQL 9.7.4-4 adds the vector (HNSW) index. Starting with Percona XtraBackup 9.7.2-3, Percona XtraBackup handles vector indexes. To back up a Percona Server for MySQL 9.7.4-4 database with vector indexes, use Percona XtraBackup 9.7.2-3 or higher.

The `VECTOR` data type is available in all Percona Server for MySQL 9.7 releases. Percona XtraBackup backs up and restores tables with `VECTOR` columns and no vector index.

The export and import of tablespaces depend on the table:

* For a table with `VECTOR` columns and no vector index, `--prepare --export` and the import of the exported tablespace work starting with Percona XtraBackup 9.7.2-3.

* For a table with a vector index, `--prepare --export` succeeds and creates the `.cfg` file. You cannot import the tablespace because vector index support is at the minimum viable product (MVP) stage.

!!! warning

If the server has vector indexes, do not trust backups taken with Percona XtraBackup 9.7.2-2. These backups are invalid. The backup and prepare steps can still succeed. To get a valid backup, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again.
4 changes: 2 additions & 2 deletions docs/xtrabackup-exit-codes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# xtrabackup exit codes

The *xtrabackup* binary exits with the traditional success value of 0 after a backup when no error occurs. If an error occurs during the backup, the exit value is 1.
The *xtrabackup* binary exits with the traditional success value of 0 after a backup when no error occurs. Any non-zero exit value means that an error occurred.

In certain cases, the exit value can be something other than 0 or 1, due to the command-line option code included from the *MySQL* libraries. An unknown command-line option, for example, will cause an exit code of 255.
The exact non-zero value depends on the error. The command-line option code from the *MySQL* libraries sets some of these values. For example, an unknown command-line option causes an exit code of 255.
Loading