I am facing an issue while attempting to back up my MariaDB database,
which is entirely based on the MyRocks storage engine. My MariaDB was
compiled without InnoDB support, and I am using `mariadb-backup` to
perform the backup. However, I encounter the following error:

❯ sudo -u mysql /usr/local/mysql/bin/mariadb-backup --backup
--target-dir=/tmp/rebuild_slave
[00] 2024-11-13 06:37:55 Connecting to MariaDB server host: localhost,
user: mysql, password: not set, port: 2883, socket:
/run/mysqld/mysqld.sock
[00] 2024-11-13 06:37:56 Using server version 11.4.2-MariaDB-log
/usr/local/mysql/bin/mariadb-backup based on MariaDB server
11.4.2-MariaDB Linux (x86_64)
[00] 2024-11-13 06:37:56 uses posix_fadvise().
[00] 2024-11-13 06:37:56 cd to /mnt/data/i18n/mariadb/data/
[00] 2024-11-13 06:37:56 open files limit requested 0, set to 108224
[00] 2024-11-13 06:37:56 mariabackup: using the following InnoDB configuration:
[00] 2024-11-13 06:37:56 innodb_data_home_dir = .
[00] 2024-11-13 06:37:56 innodb_data_file_path = ibdata1:10M:autoextend
[00] 2024-11-13 06:37:56 innodb_log_group_home_dir = .
2024-11-13  6:37:56 0 [Note] InnoDB: Number of transaction pools: 1
2024-11-13  6:37:56 0 [ERROR] InnoDB: File ./ib_logfile0 was not found
[00] 2024-11-13 06:37:56 Error: cannot read redo log header

❯ sudo -u mysql /usr/local/mysql/bin/mariadb-backup --backup
--target-dir=/tmp/rebuild_slave --skip-innodb-backup
/usr/local/mysql/bin/mariadb-backup: unknown option '--skip-innodb-backup'

❯ sudo -u mysql /usr/local/mysql/bin/mariadb-backup --backup
--target-dir=/tmp/rebuild_slave --rocksdb-backup
[00] 2024-11-13 06:38:53 Connecting to MariaDB server host: localhost,
user: mysql, password: not set, port: 2883, socket:
/run/mysqld/mysqld.sock
[00] 2024-11-13 06:38:53 Using server version 11.4.2-MariaDB-log
/usr/local/mysql/bin/mariadb-backup based on MariaDB server
11.4.2-MariaDB Linux (x86_64)
[00] 2024-11-13 06:38:53 uses posix_fadvise().
[00] 2024-11-13 06:38:53 cd to /mnt/data/i18n/mariadb/data/
[00] 2024-11-13 06:38:53 open files limit requested 0, set to 108224
[00] 2024-11-13 06:38:53 mariabackup: using the following InnoDB configuration:
[00] 2024-11-13 06:38:53 innodb_data_home_dir = .
[00] 2024-11-13 06:38:53 innodb_data_file_path = ibdata1:10M:autoextend
[00] 2024-11-13 06:38:53 innodb_log_group_home_dir = .
2024-11-13  6:38:53 0 [Note] InnoDB: Number of transaction pools: 1
2024-11-13  6:38:53 0 [ERROR] InnoDB: File ./ib_logfile0 was not found
[00] 2024-11-13 06:38:53 Error: cannot read redo log header

❯ mariadb-backup -v
mariadb-backup based on MariaDB server 11.4.2-MariaDB Linux (x86_64)


──────
i18N.Site : MarkDown Translate / Website Solution ( 翻译&建站工具 )
_______________________________________________
discuss mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to