Options for mariadb-backup & mariabackup in MariaDB Enterprise Server 10.6
mariadb-backup utility is the newer name for
mariabackup, though you can still run it using either name.
take backup to target-dir
This option controls how MariaDB Backup should retrieve server's binary log coordinates corresponding to the backup. Possible values are OFF, ON, LOCKLESS and AUTO. However, LOCKLESS is not safe to use with MariaDB Server. See the documentation for more information.
Check database user privileges fro the backup user (Defaults to on; use --skip-check-privileges to disable.)
do not keep files opened. Use at your own risk.
Compress individual backup files using the specified compression algorithm. Currently the only supported algorithm is 'quicklz'. It is also the default algorithm, i.e., the one used when --compress is used without an argument.
Size of working buffer(s) for compression threads in bytes. The default value is 64K.
Number of threads for parallel data compression. The default value is 1.
Copy all the files in a previously made backup from the backup directory to their original locations.
Write core on fatal signals
filtering by list of databases.
Excluding databases based on name, Operates the same way as --databases, but matched names are excluded from backup. Note that this option has a higher priority than --databases.
filtering by list of databases in the file.
Path to the database root.
Decompresses all files with the .qp extension in a backup previously made with the --compress option.
Read this file after the global files are read.
Only read default options from the given file #.
defaults group in config file (default "mysqld").
Additionally read default groups with # appended as a suffix.
In --backup, assume that nonzero key_
create files to import to another database when prepare.
Enable extended validation for Innodb data pages during backup phase. Will slow down backup considerably, in case encryption is used. May fail if tables are created during the backup.
(for --backup): save an extra copy of the xtrabackup_
This option, when specified, makes --copy-back or --move-back transfer files to non-empty directories. Note that no existing files will be overwritten. If --copy-back or --move-back has to copy a file from the backup directory which already exists in the destination directory, it will still fail with an error.
This option specifies which types of queries are allowed to complete before innobackupex will issue the global lock. Default is all.. One of: ALL, UPDATE, SELECT
This option specifies the query run time threshold which is used by innobackupex to detect long-running queries with a non-zero value of --ftwrl-wait-timeout. FTWRL is not started until such long-running queries exist. This option has no effect if --ftwrl-wait-timeout is 0. Default value is 60 seconds.
This option specifies time in seconds that innobackupex should wait for queries that would block FTWRL before running it. If there are still such queries when the timeout expires, innobackupex terminates with an error. Default is 0, in which case innobackupex does not wait for queries to complete and starts FTWRL immediately.
This options creates the xtrabackup_
Display this help and exit.
This option enables the tracking of backup history in the PERCONA_
This option specifies the host to use when connecting to the database server with TCP/IP. The option accepts a string argument. See mysql --help for details.
(for --backup): copy only .ibd pages newer than backup at specified directory.
(for --prepare): apply .delta files and logfile in the specified directory.
Perform a full-scan incremental backup even in the presence of changed page bitmap data
This option specifies the name of the backup series stored in the PERCONA_
This option specifies the UUID of the specific history record stored in the PERCONA_
(for --backup): copy only .ibd pages newer than specified LSN 'high:low'. ##ATTENTION##: If a wrong LSN value is specified, it is impossible to diagnose this, causing the backup to be unusable. Be careful!
Ignored option for MySQL option compatibility
Enable InnoDB adaptive hash index (disabled by default).
Data file autoextend increment in megabytes
Ignored for mysqld option compatibility
The algorithm InnoDB uses for page checksumming. [CRC32, STRICT_
Compression level used for zlib compression.
Path to individual files and their sizes.
The common part for InnoDB table spaces.
Enable InnoDB doublewrite buffer during --prepare.
Number of file I/O threads in InnoDB.
Stores each InnoDB table to an .ibd file in the database dir.
With which method to flush data.. One of: fsync, O_
(for --prepare): Crash recovery mode (ignores page corruption; for emergencies only).
Number of IOPs the server can do. Tunes the background IO rate
The size of the buffer which InnoDB uses to write log to the log files on disk.
Ignored for mysqld option compatibility
Path to InnoDB log files.
Percentage of dirty pages allowed in bufferpool.
The universal page size of the database.
Number of background read I/O threads in InnoDB.
Directory where undo tablespace files live, this path can be absolute.
Number of undo tablespaces to use.
Use native AIO if supported on this platform. (Defaults to on; use --skip-innodb-use-native-aio to disable.)
Number of background write I/O threads in InnoDB.
This option specifies the number of seconds innobackupex waits between starting FLUSH TABLES WITH READ LOCK and killing those queries that block it. Default is 0 seconds, which means innobackupex will not attempt to kill any queries.
This option specifies which types of queries should be killed to unblock the global lock. Default is "all".. One of: ALL, UPDATE, SELECT
This option tells MariaDB Backup to obtain a read metadata lock for each table, which can prevent concurrent DDL from occurring during the backup. Before the backup starts, MariaDB Backup acquires a metadata lock for each individual table on the system. The metadata locks are released when the backup completes.
Ignored option for MySQL option compatibility
Base name for the log sequence
time interval between checks done by log copying thread in milliseconds (default is 1 second).
Continue backup if innodb corrupted pages are found. The pages are logged in innodb_
Move all the files in a previously made backup from the backup directory to the actual datadir location. Use with caution, as it removes backup files.
All arguments that follow this argument are considered as server options, and if some of them are not supported by mariabackup, they will be ignored.
Don't read default options from any option file.
Use this option to disable table lock with "FLUSH TABLES WITH READ LOCK". Use it only if ALL your tables are InnoDB and you DO NOT CARE about the binary log position of the backup. This option shouldn't be used if there are any DDL statements being executed or if any updates are happening on non-InnoDB tables (this includes the system MyISAM tables in the mysql database), otherwise it could lead to an inconsistent backup. If you are considering to use --no-lock because your backups are failing to acquire the lock, this could be because of incoming replication events preventing the lock from succeeding. Please try using --safe-slave-backup to momentarily stop the replication slave thread, this may help the backup to succeed and you then don't need to resort to using this option.
This option disables the version check which is enabled by the --version-check option.
the maximum number of file descriptors to reserve with setrlimit().
Number of threads to use for parallel datafiles transfer. The default value is 1.
This option specifies the password to use when connecting to the database. It accepts a string argument. See mysql --help for details.
Server plugin directory. Used to load encryption plugin during 'prepare' phase.Has no effect in the 'backup' phase (plugin directory during backup is the same as server's)
This option specifies the port to use when connecting to the database server with TCP/IP. The option accepts a string argument. See mysql --help for details.
prepare a backup for starting mysql server on the backup.
Print the program argument list and exit.
print parameter of mysqld needed for copyback.
The protocol to use for connection (tcp, socket, pipe, memory).
Remove .qp files after decompression.
Backup rocksdb data, if rocksdb plugin is installed.Used only with --backup option. Can be useful for partial backups, to exclude all rocksdb data (Defaults to on; use --skip-rocksdb-backup to disable.)
RocksDB data directory.This option is only used with --copy-back or --move-back option
Stop slave SQL thread and wait to start backup until Slave_
How many seconds --safe-slave-backup should wait for Slave_
Refuse client connecting to server if it uses old (pre-4.1.1) protocol. (Defaults to on; use --skip-secure-auth to disable.)
This option is useful when backing up a replication slave server. It prints the binary log position and name of the master server. It also writes this information to the "xtrabackup_
This option specifies the socket to use when connecting to the local database server with a UNIX domain socket. The option accepts a string argument. See mysql --help for details.
Enable SSL for connection (automatically enabled with other flags).
CA file in PEM format (check OpenSSL docs, implies --ssl).
CA directory (check OpenSSL docs, implies --ssl).
X509 cert in PEM format (implies --ssl).
SSL cipher to use (implies --ssl).
Certificate revocation list (implies --ssl).
Certificate revocation list path (implies --ssl).
X509 key in PEM format (implies --ssl).
Verify server's "Common Name" in its cert against hostname used when connecting. This option is disabled by default.
Stream all backup files to the standard output in the specified format.Supported format is 'mbstream' or 'xbstream'.
filtering by regexp for table names.
filtering by regexp for table names. Operates the same way as --tables, but matched names are excluded from backup. Note that this option has a higher priority than --tables.
filtering by list of the exact database.table name in the file.
limit count of IO operations (pairs of read&write) per second to IOS values (for '--backup')
TLS protocol version for secure connection.
Path for temporary files. Several paths may be specified, separated by a colon (:), in this case they are used in a round-robin fashion.
The value is used in place of innodb_
This option specifies the MySQL username used when connecting to the server, if that's not the current user. The option accepts a string argument. See mysql --help for details.
display verbose output
This option tells MariaDB Backup to print version information and then quit.
The following Command-line Options are not present in MariaDB Enterprise Server 10.6.11-6 but are present in one or more older 10.6 ES versions. Click on an item to see its details, including when it was removed.
Number of recent binary logs to be included in the backup. Setting this parameter to zero normally disables transmission of binary logs to the joiner nodes during SST using Galera. But sometimes a single current binlog can still be transmitted to the joiner even with sst_
While mariadb-backup is the recommended backup solution for MariaDB Enterprise Server when deployed on-premises, this tool requires access to the filesystem housing the database. To perform remote backups of your MariaDB Enterprise Server topologies on SkySQL, please use mysqldump or contact SkySQL Support.