[MDEV-30822] Adjust wsrep_sst_mariabackup.sh to understand both pre-MDEV-18931 and post-MDEV-18931 file naming Created: 2023-03-09  Updated: 2023-03-09

Status: Open
Project: MariaDB Server
Component/s: Backup
Fix Version/s: 11.1

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Julius Goryavsky
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-18931 Rename Mariabackup's xtrabackup_* fil... Closed

 Description   

The patch for MDEV-18931 introduced a new naming for MariaDB backup files.

In this task we'll additionally fix wsrep_sst_mariabackup.sh to support SST for multi-version environment, when SST is done from an old (pre-MDEV-18931) node to a new (post-MDEV-18931) node.

A possible solution (proposed by sysprg and serg) would be to check (before doing the actual job) the backup directory for old files and rename them (if exit) according to the new naming, e.g. like this:

[ -f "$DATA/xtrabackup_galera_info" ] && mv "$DATA/xtrabackup_galera_info" "$DATA/mariadb_backup_galera_info"

(and similar renames for other essential files).


Generated at Thu Feb 08 10:19:09 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.