mariadb-archiver for MariaDB Tools
This page is part of MariaDB's Documentation.
The parent of this page is: Command-Line Interfaces for MariaDB Tools
Topics on this page:
Overview
The mariadb-archiver
utility.
mariadb-archiver Options for MariaDB Tools
Option | Argument | Description |
---|---|---|
string | Run ANALYZE TABLE afterwards on --source and/or -- dest | |
Ascend only first column of index | ||
Prompt for a password when connecting to MariaDB | ||
Buffer output to --file and flush at commit | ||
Delete each chunk with a single statement ( implies --commit-each) | ||
Add --limit to --bulk-delete statement (default yes). Disable using: --nobulk-delete-limit | ||
Insert each chunk with LOAD DATA INFILE (implies -- bulk-delete --commit-each) | ||
string | Channel name used when connected to a server using replication channels | |
string | Default character set | |
Ensure connection and table character sets are the same (default yes). Disable using: --nocheck-charset | ||
Ensure --source and --dest have same columns ( default yes). Disable using: --nocheck-columns | ||
time | If --check-slave-lag is given, this defines how long the tool pauses each time it discovers that a slave is lagging (default 1s). Optional suffix s= seconds, m=minutes, h=hours, d=days; if no suffix, s is used. | |
string | Pause archiving until the specified DSN's slave lag is less than --max-lag | |
string | Comma-separated list of columns to archive | |
Commit each set of fetched and archived rows ( disables --txn-size) | ||
string | Read this comma-separated list of config files; if specified, this must be the first option on the command line | |
string | Connect to this database | |
Add the DELAYED modifier to INSERT statements | ||
DSN | DSN specifying the table to archive to | |
Print queries and exit without doing anything | ||
string | File to archive to, with DATE_ | |
Adds the FOR UPDATE modifier to SELECT statements | ||
Print column header at top of --file | ||
Show help and exit | ||
Adds the HIGH_ | ||
string | Connect to host | |
Use IGNORE for INSERT statements | ||
integer | Number of rows to fetch and archive per statement ( default 1) | |
Do not write OPTIMIZE or ANALYZE queries to binlog | ||
Adds the LOW_ | ||
Adds the LOW_ | ||
float | Somewhat similar to --max-lag but for Galera clusters | |
time | Pause archiving if the slave given by --check- slave-lag lags (default 1s). Optional suffix s= seconds, m=minutes, h=hours, d=days; if no suffix, s is used. | |
Do not use ascending index optimization | ||
Do not delete archived rows | ||
string | Run OPTIMIZE TABLE afterwards on --source and/or -- dest | |
string | Used with --file to specify the output format | |
string | Password to use when connecting | |
string | Create the given PID file | |
string | Perl module name to use as a generic plugin | |
integer | Port number to use for connection | |
Primary key columns only | ||
integer | Print progress information every X rows | |
Purge instead of archiving; allows omitting --file and --dest | ||
Adds the QUICK modifier to DELETE statements | ||
Do not print any output, such as for --statistics | ||
Causes INSERTs into --dest to be written as REPLACE | ||
integer | Number of retries per timeout or deadlock (default 1) | |
time | Time to run before exiting. Optional suffix s= seconds, m=minutes, h=hours, d=days; if no suffix, s is used. | |
Do not archive row with max AUTO_ | ||
string | Exit if this file exists (default /tmp/mariadb- archiver-sentinel) | |
string | Set the MariaDB variables in this comma-separated list of variable=value pairs | |
Adds the LOCK IN SHARE MODE modifier to SELECT statements | ||
Disables foreign key checks with SET FOREIGN_ | ||
string | Sets the password to be used to connect to the slaves | |
string | Sets the user to be used to connect to the slaves | |
integer | Sleep time between fetches | |
float | Calculate --sleep as a multiple of the last SELECT time | |
string | Socket file to use for connection | |
DSN | DSN specifying the table to archive from (required) | |
Collect and print timing statistics | ||
Stop running instances by creating the sentinel file | ||
integer | Number of rows per transaction (default 1) | |
string | User for login if not current user | |
Show version and exit | ||
string | WHERE clause to limit which rows to archive ( required) | |
Print reason for exiting unless rows exhausted |