Closed grooverdan closed 11 months ago
I can confirm it works as expected. Steps followed to test it with mariadb-operator
:
mariadb:init
and loaded into KINDCreate the following MariaDB
resource, notice that there are no initcontainers
apiVersion: mariadb.mmontes.io/v1alpha1
kind: MariaDB
metadata:
name: mariadb-init-mariabackup
spec:
rootPasswordSecretKeyRef:
name: mariadb
key: root-password
database: mariadb
username: mariadb
passwordSecretKeyRef:
name: mariadb
key: password
image:
repository: mariadb
tag: "init"
pullPolicy: IfNotPresent
port: 3306
volumes:
- name: mariabackup
persistentVolumeClaim:
claimName: mariabackup
volumeMounts:
- name: mariabackup
mountPath: /docker-entrypoint-initdb.d
volumeClaimTemplate:
resources:
requests:
storage: 1Gi
accessModes:
- ReadWriteOnce
mariabackup --backup \
--target-dir=/var/mariadb/backup/ \
--user=root --password=mariadb
mariabackup --prepare \
--target-dir=/var/mariadb/backup/
cd /var/mariadb/backup
tar -zcxvf mariabackup.tar .
gzip mariabackup.tar
cp mariabackup.tar.gz docker-entrypoint-initdb.d/
MariaDB
backup, resulting logs:
2023-10-06 17:54:17+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.0.3+maria~ubu2204 started.
2023-10-06 17:54:17+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2023-10-06 17:54:17+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.0.3+maria~ubu2204 started.
mariadb-backup based on MariaDB server 11.0.3-MariaDB debian-linux-gnu (x86_64)
[01] 2023-10-06 17:54:17 Moving ./aria_log.00000001 to /var/lib/mysql//.restore/aria_log.00000001
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./aria_log_control to /var/lib/mysql//.restore/aria_log_control
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving undo001 to /var/lib/mysql//.restore/undo001
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving undo002 to /var/lib/mysql//.restore/undo002
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving undo003 to /var/lib/mysql//.restore/undo003
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ib_logfile0 to /var/lib/mysql//.restore/ib_logfile0
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ibdata1 to /var/lib/mysql//.restore/./ibdata1
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./xtrabackup_info to /var/lib/mysql//.restore/xtrabackup_info
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mariadb/db.opt to /var/lib/mysql//.restore/mariadb/db.opt
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/ps_check_lost_instrumentation.frm to /var/lib/mysql//.restore/sys/ps_check_lost_instrumentation.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/user_summary.frm to /var/lib/mysql//.restore/sys/user_summary.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024statements_with_temp_tables.frm to /var/lib/mysql//.restore/sys/x@0024statements_with_temp_tables.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024schema_tables_with_full_table_scans.frm to /var/lib/mysql//.restore/sys/x@0024schema_tables_with_full_table_scans.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/io_by_thread_by_latency.frm to /var/lib/mysql//.restore/sys/io_by_thread_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/processlist.frm to /var/lib/mysql//.restore/sys/processlist.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024host_summary_by_statement_type.frm to /var/lib/mysql//.restore/sys/x@0024host_summary_by_statement_type.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024host_summary_by_statement_latency.frm to /var/lib/mysql//.restore/sys/x@0024host_summary_by_statement_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/host_summary_by_file_io_type.frm to /var/lib/mysql//.restore/sys/host_summary_by_file_io_type.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024wait_classes_global_by_avg_latency.frm to /var/lib/mysql//.restore/sys/x@0024wait_classes_global_by_avg_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/statements_with_full_table_scans.frm to /var/lib/mysql//.restore/sys/statements_with_full_table_scans.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/user_summary_by_stages.frm to /var/lib/mysql//.restore/sys/user_summary_by_stages.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024host_summary.frm to /var/lib/mysql//.restore/sys/x@0024host_summary.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024session.frm to /var/lib/mysql//.restore/sys/x@0024session.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/innodb_buffer_stats_by_table.frm to /var/lib/mysql//.restore/sys/innodb_buffer_stats_by_table.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/wait_classes_global_by_latency.frm to /var/lib/mysql//.restore/sys/wait_classes_global_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/metrics.frm to /var/lib/mysql//.restore/sys/metrics.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/host_summary_by_statement_type.frm to /var/lib/mysql//.restore/sys/host_summary_by_statement_type.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024user_summary.frm to /var/lib/mysql//.restore/sys/x@0024user_summary.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/latest_file_io.frm to /var/lib/mysql//.restore/sys/latest_file_io.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/memory_by_host_by_current_bytes.frm to /var/lib/mysql//.restore/sys/memory_by_host_by_current_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024schema_index_statistics.frm to /var/lib/mysql//.restore/sys/x@0024schema_index_statistics.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/schema_table_statistics_with_buffer.frm to /var/lib/mysql//.restore/sys/schema_table_statistics_with_buffer.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/statements_with_sorting.frm to /var/lib/mysql//.restore/sys/statements_with_sorting.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024statements_with_full_table_scans.frm to /var/lib/mysql//.restore/sys/x@0024statements_with_full_table_scans.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/host_summary.frm to /var/lib/mysql//.restore/sys/host_summary.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024statement_analysis.frm to /var/lib/mysql//.restore/sys/x@0024statement_analysis.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024user_summary_by_stages.frm to /var/lib/mysql//.restore/sys/x@0024user_summary_by_stages.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/user_summary_by_file_io.frm to /var/lib/mysql//.restore/sys/user_summary_by_file_io.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024memory_by_thread_by_current_bytes.frm to /var/lib/mysql//.restore/sys/x@0024memory_by_thread_by_current_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/statements_with_errors_or_warnings.frm to /var/lib/mysql//.restore/sys/statements_with_errors_or_warnings.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/statement_analysis.frm to /var/lib/mysql//.restore/sys/statement_analysis.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024host_summary_by_file_io.frm to /var/lib/mysql//.restore/sys/x@0024host_summary_by_file_io.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/sys_config.frm to /var/lib/mysql//.restore/sys/sys_config.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/io_global_by_wait_by_latency.frm to /var/lib/mysql//.restore/sys/io_global_by_wait_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024latest_file_io.frm to /var/lib/mysql//.restore/sys/x@0024latest_file_io.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024io_global_by_file_by_bytes.frm to /var/lib/mysql//.restore/sys/x@0024io_global_by_file_by_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/wait_classes_global_by_avg_latency.frm to /var/lib/mysql//.restore/sys/wait_classes_global_by_avg_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024io_by_thread_by_latency.frm to /var/lib/mysql//.restore/sys/x@0024io_by_thread_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/user_summary_by_statement_latency.frm to /var/lib/mysql//.restore/sys/user_summary_by_statement_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024host_summary_by_stages.frm to /var/lib/mysql//.restore/sys/x@0024host_summary_by_stages.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/memory_global_by_current_bytes.frm to /var/lib/mysql//.restore/sys/memory_global_by_current_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/statements_with_runtimes_in_95th_percentile.frm to /var/lib/mysql//.restore/sys/statements_with_runtimes_in_95th_percentile.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/sys_config.MAI to /var/lib/mysql//.restore/sys/sys_config.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/schema_redundant_indexes.frm to /var/lib/mysql//.restore/sys/schema_redundant_indexes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/io_global_by_wait_by_bytes.frm to /var/lib/mysql//.restore/sys/io_global_by_wait_by_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024processlist.frm to /var/lib/mysql//.restore/sys/x@0024processlist.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024ps_digest_avg_latency_distribution.frm to /var/lib/mysql//.restore/sys/x@0024ps_digest_avg_latency_distribution.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024user_summary_by_file_io.frm to /var/lib/mysql//.restore/sys/x@0024user_summary_by_file_io.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024io_global_by_wait_by_latency.frm to /var/lib/mysql//.restore/sys/x@0024io_global_by_wait_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024innodb_lock_waits.frm to /var/lib/mysql//.restore/sys/x@0024innodb_lock_waits.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/innodb_buffer_stats_by_schema.frm to /var/lib/mysql//.restore/sys/innodb_buffer_stats_by_schema.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/sys_config.MAD to /var/lib/mysql//.restore/sys/sys_config.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/schema_auto_increment_columns.frm to /var/lib/mysql//.restore/sys/schema_auto_increment_columns.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/waits_global_by_latency.frm to /var/lib/mysql//.restore/sys/waits_global_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024statements_with_runtimes_in_95th_percentile.frm to /var/lib/mysql//.restore/sys/x@0024statements_with_runtimes_in_95th_percentile.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/io_global_by_file_by_latency.frm to /var/lib/mysql//.restore/sys/io_global_by_file_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024memory_global_by_current_bytes.frm to /var/lib/mysql//.restore/sys/x@0024memory_global_by_current_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024memory_global_total.frm to /var/lib/mysql//.restore/sys/x@0024memory_global_total.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/innodb_lock_waits.frm to /var/lib/mysql//.restore/sys/innodb_lock_waits.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/schema_index_statistics.frm to /var/lib/mysql//.restore/sys/schema_index_statistics.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024waits_by_user_by_latency.frm to /var/lib/mysql//.restore/sys/x@0024waits_by_user_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024user_summary_by_file_io_type.frm to /var/lib/mysql//.restore/sys/x@0024user_summary_by_file_io_type.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024io_global_by_file_by_latency.frm to /var/lib/mysql//.restore/sys/x@0024io_global_by_file_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/user_summary_by_file_io_type.frm to /var/lib/mysql//.restore/sys/user_summary_by_file_io_type.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/memory_by_thread_by_current_bytes.frm to /var/lib/mysql//.restore/sys/memory_by_thread_by_current_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024innodb_buffer_stats_by_table.frm to /var/lib/mysql//.restore/sys/x@0024innodb_buffer_stats_by_table.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/schema_table_statistics.frm to /var/lib/mysql//.restore/sys/schema_table_statistics.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/io_global_by_file_by_bytes.frm to /var/lib/mysql//.restore/sys/io_global_by_file_by_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024schema_flattened_keys.frm to /var/lib/mysql//.restore/sys/x@0024schema_flattened_keys.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024ps_digest_95th_percentile_by_avg_us.frm to /var/lib/mysql//.restore/sys/x@0024ps_digest_95th_percentile_by_avg_us.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/host_summary_by_stages.frm to /var/lib/mysql//.restore/sys/host_summary_by_stages.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024ps_schema_table_statistics_io.frm to /var/lib/mysql//.restore/sys/x@0024ps_schema_table_statistics_io.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/memory_global_total.frm to /var/lib/mysql//.restore/sys/memory_global_total.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/memory_by_user_by_current_bytes.frm to /var/lib/mysql//.restore/sys/memory_by_user_by_current_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/host_summary_by_file_io.frm to /var/lib/mysql//.restore/sys/host_summary_by_file_io.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/waits_by_user_by_latency.frm to /var/lib/mysql//.restore/sys/waits_by_user_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/schema_table_lock_waits.frm to /var/lib/mysql//.restore/sys/schema_table_lock_waits.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024statements_with_errors_or_warnings.frm to /var/lib/mysql//.restore/sys/x@0024statements_with_errors_or_warnings.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024schema_table_statistics_with_buffer.frm to /var/lib/mysql//.restore/sys/x@0024schema_table_statistics_with_buffer.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024waits_global_by_latency.frm to /var/lib/mysql//.restore/sys/x@0024waits_global_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/host_summary_by_statement_latency.frm to /var/lib/mysql//.restore/sys/host_summary_by_statement_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/session.frm to /var/lib/mysql//.restore/sys/session.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/version.frm to /var/lib/mysql//.restore/sys/version.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024schema_table_statistics.frm to /var/lib/mysql//.restore/sys/x@0024schema_table_statistics.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024host_summary_by_file_io_type.frm to /var/lib/mysql//.restore/sys/x@0024host_summary_by_file_io_type.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024user_summary_by_statement_latency.frm to /var/lib/mysql//.restore/sys/x@0024user_summary_by_statement_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/schema_tables_with_full_table_scans.frm to /var/lib/mysql//.restore/sys/schema_tables_with_full_table_scans.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024schema_table_lock_waits.frm to /var/lib/mysql//.restore/sys/x@0024schema_table_lock_waits.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/schema_unused_indexes.frm to /var/lib/mysql//.restore/sys/schema_unused_indexes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024memory_by_host_by_current_bytes.frm to /var/lib/mysql//.restore/sys/x@0024memory_by_host_by_current_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/waits_by_host_by_latency.frm to /var/lib/mysql//.restore/sys/waits_by_host_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024user_summary_by_statement_type.frm to /var/lib/mysql//.restore/sys/x@0024user_summary_by_statement_type.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/schema_object_overview.frm to /var/lib/mysql//.restore/sys/schema_object_overview.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/session_ssl_status.frm to /var/lib/mysql//.restore/sys/session_ssl_status.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024waits_by_host_by_latency.frm to /var/lib/mysql//.restore/sys/x@0024waits_by_host_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024memory_by_user_by_current_bytes.frm to /var/lib/mysql//.restore/sys/x@0024memory_by_user_by_current_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024innodb_buffer_stats_by_schema.frm to /var/lib/mysql//.restore/sys/x@0024innodb_buffer_stats_by_schema.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024wait_classes_global_by_latency.frm to /var/lib/mysql//.restore/sys/x@0024wait_classes_global_by_latency.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024io_global_by_wait_by_bytes.frm to /var/lib/mysql//.restore/sys/x@0024io_global_by_wait_by_bytes.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/db.opt to /var/lib/mysql//.restore/sys/db.opt
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/x@0024statements_with_sorting.frm to /var/lib/mysql//.restore/sys/x@0024statements_with_sorting.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/statements_with_temp_tables.frm to /var/lib/mysql//.restore/sys/statements_with_temp_tables.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./sys/user_summary_by_statement_type.frm to /var/lib/mysql//.restore/sys/user_summary_by_statement_type.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./foo/t.frm to /var/lib/mysql//.restore/foo/t.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./foo/t.ibd to /var/lib/mysql//.restore/foo/t.ibd
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./foo/db.opt to /var/lib/mysql//.restore/foo/db.opt
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./performance_schema/db.opt to /var/lib/mysql//.restore/performance_schema/db.opt
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_transition.MAD to /var/lib/mysql//.restore/mysql/time_zone_transition.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/columns_priv.frm to /var/lib/mysql//.restore/mysql/columns_priv.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/column_stats.frm to /var/lib/mysql//.restore/mysql/column_stats.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/index_stats.MAD to /var/lib/mysql//.restore/mysql/index_stats.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/tables_priv.MAD to /var/lib/mysql//.restore/mysql/tables_priv.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/roles_mapping.MAI to /var/lib/mysql//.restore/mysql/roles_mapping.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/servers.frm to /var/lib/mysql//.restore/mysql/servers.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/plugin.MAD to /var/lib/mysql//.restore/mysql/plugin.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_leap_second.MAD to /var/lib/mysql//.restore/mysql/time_zone_leap_second.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/columns_priv.MAI to /var/lib/mysql//.restore/mysql/columns_priv.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/event.MAD to /var/lib/mysql//.restore/mysql/event.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/db.frm to /var/lib/mysql//.restore/mysql/db.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/proxies_priv.MAD to /var/lib/mysql//.restore/mysql/proxies_priv.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_keyword.frm to /var/lib/mysql//.restore/mysql/help_keyword.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/column_stats.MAI to /var/lib/mysql//.restore/mysql/column_stats.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/global_priv.frm to /var/lib/mysql//.restore/mysql/global_priv.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_topic.MAD to /var/lib/mysql//.restore/mysql/help_topic.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/proxies_priv.MAI to /var/lib/mysql//.restore/mysql/proxies_priv.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_transition_type.frm to /var/lib/mysql//.restore/mysql/time_zone_transition_type.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/transaction_registry.frm to /var/lib/mysql//.restore/mysql/transaction_registry.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_category.MAI to /var/lib/mysql//.restore/mysql/help_category.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone.MAI to /var/lib/mysql//.restore/mysql/time_zone.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/innodb_index_stats.frm to /var/lib/mysql//.restore/mysql/innodb_index_stats.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/slow_log.CSM to /var/lib/mysql//.restore/mysql/slow_log.CSM
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/roles_mapping.MAD to /var/lib/mysql//.restore/mysql/roles_mapping.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/innodb_index_stats.ibd to /var/lib/mysql//.restore/mysql/innodb_index_stats.ibd
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone.MAD to /var/lib/mysql//.restore/mysql/time_zone.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/procs_priv.MAI to /var/lib/mysql//.restore/mysql/procs_priv.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/servers.MAD to /var/lib/mysql//.restore/mysql/servers.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/plugin.MAI to /var/lib/mysql//.restore/mysql/plugin.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/db.MAD to /var/lib/mysql//.restore/mysql/db.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/func.MAD to /var/lib/mysql//.restore/mysql/func.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_name.frm to /var/lib/mysql//.restore/mysql/time_zone_name.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/proc.MAI to /var/lib/mysql//.restore/mysql/proc.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/tables_priv.MAI to /var/lib/mysql//.restore/mysql/tables_priv.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/proc.frm to /var/lib/mysql//.restore/mysql/proc.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_relation.MAD to /var/lib/mysql//.restore/mysql/help_relation.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_leap_second.MAI to /var/lib/mysql//.restore/mysql/time_zone_leap_second.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_name.MAD to /var/lib/mysql//.restore/mysql/time_zone_name.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/user.frm to /var/lib/mysql//.restore/mysql/user.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/roles_mapping.frm to /var/lib/mysql//.restore/mysql/roles_mapping.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/slow_log.CSV to /var/lib/mysql//.restore/mysql/slow_log.CSV
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/event.MAI to /var/lib/mysql//.restore/mysql/event.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/proxies_priv.frm to /var/lib/mysql//.restore/mysql/proxies_priv.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/gtid_slave_pos.ibd to /var/lib/mysql//.restore/mysql/gtid_slave_pos.ibd
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_category.MAD to /var/lib/mysql//.restore/mysql/help_category.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/general_log.CSV to /var/lib/mysql//.restore/mysql/general_log.CSV
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_name.MAI to /var/lib/mysql//.restore/mysql/time_zone_name.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/global_priv.MAI to /var/lib/mysql//.restore/mysql/global_priv.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/innodb_table_stats.ibd to /var/lib/mysql//.restore/mysql/innodb_table_stats.ibd
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/table_stats.MAD to /var/lib/mysql//.restore/mysql/table_stats.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/table_stats.frm to /var/lib/mysql//.restore/mysql/table_stats.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_keyword.MAD to /var/lib/mysql//.restore/mysql/help_keyword.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/table_stats.MAI to /var/lib/mysql//.restore/mysql/table_stats.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/general_log.CSM to /var/lib/mysql//.restore/mysql/general_log.CSM
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/procs_priv.MAD to /var/lib/mysql//.restore/mysql/procs_priv.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/transaction_registry.ibd to /var/lib/mysql//.restore/mysql/transaction_registry.ibd
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone.frm to /var/lib/mysql//.restore/mysql/time_zone.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/func.frm to /var/lib/mysql//.restore/mysql/func.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/event.frm to /var/lib/mysql//.restore/mysql/event.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_relation.frm to /var/lib/mysql//.restore/mysql/help_relation.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/innodb_table_stats.frm to /var/lib/mysql//.restore/mysql/innodb_table_stats.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/tables_priv.frm to /var/lib/mysql//.restore/mysql/tables_priv.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_leap_second.frm to /var/lib/mysql//.restore/mysql/time_zone_leap_second.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/func.MAI to /var/lib/mysql//.restore/mysql/func.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/procs_priv.frm to /var/lib/mysql//.restore/mysql/procs_priv.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/db.MAI to /var/lib/mysql//.restore/mysql/db.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/columns_priv.MAD to /var/lib/mysql//.restore/mysql/columns_priv.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/proc.MAD to /var/lib/mysql//.restore/mysql/proc.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/column_stats.MAD to /var/lib/mysql//.restore/mysql/column_stats.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/global_priv.MAD to /var/lib/mysql//.restore/mysql/global_priv.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/servers.MAI to /var/lib/mysql//.restore/mysql/servers.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_transition.frm to /var/lib/mysql//.restore/mysql/time_zone_transition.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_keyword.MAI to /var/lib/mysql//.restore/mysql/help_keyword.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/index_stats.frm to /var/lib/mysql//.restore/mysql/index_stats.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_transition_type.MAD to /var/lib/mysql//.restore/mysql/time_zone_transition_type.MAD
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/plugin.frm to /var/lib/mysql//.restore/mysql/plugin.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/general_log.frm to /var/lib/mysql//.restore/mysql/general_log.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_relation.MAI to /var/lib/mysql//.restore/mysql/help_relation.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_category.frm to /var/lib/mysql//.restore/mysql/help_category.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_transition.MAI to /var/lib/mysql//.restore/mysql/time_zone_transition.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_topic.frm to /var/lib/mysql//.restore/mysql/help_topic.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/slow_log.frm to /var/lib/mysql//.restore/mysql/slow_log.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/index_stats.MAI to /var/lib/mysql//.restore/mysql/index_stats.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/help_topic.MAI to /var/lib/mysql//.restore/mysql/help_topic.MAI
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/db.opt to /var/lib/mysql//.restore/mysql/db.opt
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/gtid_slave_pos.frm to /var/lib/mysql//.restore/mysql/gtid_slave_pos.frm
[01] 2023-10-06 17:54:17 ...done
[01] 2023-10-06 17:54:17 Moving ./mysql/time_zone_transition_type.MAI to /var/lib/mysql//.restore/mysql/time_zone_transition_type.MAI
[01] 2023-10-06 17:54:17 ...done
[00] 2023-10-06 17:54:17 completed OK!
2023-10-06 17:54:17+00:00 [Note] [Entrypoint]: MariaDB upgrade information missing, assuming required
2023-10-06 17:54:17+00:00 [Note] [Entrypoint]: MariaDB upgrade (mariadb-upgrade) required, but skipped due to $MARIADB_AUTO_UPGRADE setting
2023-10-06 17:54:17 0 [Note] Starting MariaDB 11.0.3-MariaDB-1:11.0.3+maria~ubu2204 source revision 70905bcb9059dcc40db3b73bc46a36c7d40f1e10 as process 1
2023-10-06 17:54:17 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2023-10-06 17:54:17 0 [Note] InnoDB: Number of transaction pools: 1
2023-10-06 17:54:17 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2023-10-06 17:54:17 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2023-10-06 17:54:17 0 [Note] InnoDB: Using liburing
2023-10-06 17:54:17 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2023-10-06 17:54:17 0 [Note] InnoDB: Completed initialization of buffer pool
2023-10-06 17:54:17 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2023-10-06 17:54:17 0 [Note] InnoDB: End of log at LSN=51161
2023-10-06 17:54:17 0 [Note] InnoDB: Resizing redo log from 12.016KiB to 96.000MiB; LSN=51161
2023-10-06 17:54:17 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2023-10-06 17:54:17 0 [Note] InnoDB: Opened 3 undo tablespaces
2023-10-06 17:54:17 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
2023-10-06 17:54:17 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2023-10-06 17:54:17 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2023-10-06 17:54:17 0 [Note] InnoDB: log sequence number 51161; transaction id 28
2023-10-06 17:54:17 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-10-06 17:54:17 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2023-10-06 17:54:17 0 [Note] Plugin 'wsrep-provider' is disabled.
2023-10-06 17:54:17 0 [Note] InnoDB: Cannot open '/var/lib/mysql/ib_buffer_pool' for reading: No such file or directory
2023-10-06 17:54:17 0 [Note] Server socket created on IP: '0.0.0.0'.
2023-10-06 17:54:17 0 [Note] Server socket created on IP: '::'.
2023-10-06 17:54:17 0 [Note] mariadbd: ready for connections.
This suits the needs of the operator. Thanks for this feature 🙏🏻
might need to look at the owner of extracted files.
probably yes.
Also, I am missing the documentation on how this is supposed to work. For instance this is probably not going to work if the backup was created with:
sudo tar -czf backup.tgz /var/lib/mysql_backup/
Speaking of that I would love to see the .xb
format supported too and this makes me think if we should not use an environment variable for specifying the backup file. It would probably make it easier to support more formats and extensions.
On .xb
(mbstream format), it's particularly useful for off-sites backups and when coupling mariabackup with restic or borgbackup solutions. Here are the commands to restore the backup:
mkdir restore && cd restore
mbstream -x <../mariadb.xb
mariabackup --prepare --target-dir=.
might need to look at the owner of extracted files.
probably yes.
done.
Also, I am missing the documentation on how this is supposed to work.
Right. The general premises is its a tarball of the datadir taken from the datadir as a working directory (and mariadb stopped). The alternate is a prepared backup per the test case.
For instance this is probably not going to work if the backup was created with:
sudo tar -czf backup.tgz /var/lib/mysql_backup/
Yep, on two levels, .tgz isn't in the extension list, easy enough to added.
Second depth, there are ways it could be added/detected. I'm just not sure I want to implement it.
Is a [ ! -f mysql/user.frm ] && mysql_error 'backup not at right level'
acceptable?
Speaking of that I would love to see the
.xb
format supported too
I've no general objection, could be added in a separate PR. It wasn't my first preference as the mariadb-backup --prepare
need to be the same version as where it was backed up. If you attempt a restore on a newer version it would fail.
and this makes me think if we should not use an environment variable for specifying the backup file. It would probably make it easier to support more formats and extensions.
Do you foresee a conflict in the backup file and the mechanism required for restore?
@fauust just checking you are ok with the last two commits, especially changing the homedir and using /var/lib/mysql as a configuration location? The though was that if there where specific configuration settings needed that pertain to the backup, for restore, then then need to be set, preferably somewhere that is permanent.
please review closely.
The mariadb-backup must be prepared and tarred up.
might need to look at the owner of extracted files.