[MDEV-32494] mariabackup unpack backup not possible Created: 2023-10-17  Updated: 2023-10-17

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Daniel Czadek Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: mariabackup, mbstream
Environment:

Debian 11.8
mbstream Ver 1.0 for debian-linux-gnu (x86_64)
pigz 2.6
mariabackup based on MariaDB server 10.5.21-MariaDB debian-linux-gnu (x86_64)
mariadb Ver 15.1 Distrib 10.5.21-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper



 Description   

Hi,

I got the problem that i made some backups from our mariadb servers with mariabackup like described in the documentation.
But now i cant unpack the backups to restore them.
I always get the error:

mbstream: Can't create/write to file './ib_logfile0' (Errcode: 13 "Permission denied")
[00] 2023-10-17 09:29:58 mbstream: failed to create file.

Here are my used commands:

/usr/bin/mariabackup --galera-info --backup --stream=xbstream --parallel=2 2> "$TARGET"/xtrabackup_backup.log | pigz > "$TARGET/backupstream.gz"
 
sudo unpigz -c backupstream.gz | mbstream -x -C ./unpacked

The same error also happens with gzip or other tools.
What can be done here or is that an bug?

Greetings
dcz01



 Comments   
Comment by Daniel Czadek [ 2023-10-17 ]

Now it worked by starting the commands directly as root, not with sudo.

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