MYSQL-ZRM-PARSE-BINLOGS(1)
β¨ mysql-zrm-parse-binlogs(1) β¨
okay so bestie, you know that moment when you're staring at a binlog like "where exactly did the bad thing happen"?? yeah. this is the tool for that. π¦
πΈ NAME πΈ
mysql-zrm-parse-binlogs β the utility that parses MySQL binary logs for ZRM for MySQL. literally its whole job. π
π SYNOPSIS π
mysql-zrm-parse-binlogs
[--source-directory dir_name]
[--bin-logs "/fullpath/name1 /fullpath/name2 ..."]
[--mysql-binpath MySQL_command_location]
[--parse-binlogs-plugin plugin]
[--parse-binlogs-plugin-options "opt1 opt2 ..."]
[--row-event-details= never|always|auto]
[--output-format= html|text]
[--options-file filename]
[--tmpdir temporary directory to be used]
[--quiet|--no-quiet]
[--verbose]
[--help]
π DESCRIPTION π
So the whole point: this thing parses binary logs to find out the timestamp and/or the log position of specific database events. π΅οΈβοΈ
It displays the parsed output of those binary logs for you, which is actually useful, because that's how you find the log positions and/or timestamp you need for restore operations. no cap.
Either the --source-directory option or the --bin-logs option should be specified. Here's the tea:
- When the
--source-directoryoption is specified, the parsed output of the binary logs from that backup gets displayed. π«Ά - When the
--bin-logsoption is specified, the parsed output of the binary log file specified gets displayed.
Also, bestie, please go take a look at the ZRM for MySQL documentation at http://mysql-backup.zmanda.com/ for the procedures on how to configure and use ZRM for MySQL. it's giving required reading. π
π OPTIONS π
--backup-setname β specify the backup-set for the backup run. The default value isBackupSet1. π―--source-directorydirectory name β choose the directory containing a backup. Both--source-directoryand--bin-logsoptions should not be specified. If both are present, the utility will throw an error. π--bin-logs"/fullpath/name1 /fullpath/name2 ..." β list binary log files, along with their full paths, to be used for restore. Both--source-directoryand--bin-logsoptions should not be specified. The utility will throw an error if both are specified. π¨--parse-binlogs-pluginplugin β set the plugin, along with its full pathname, that filters the output of the parse-binlogs action. This plugin is optional. π§--parse-binlogs-plugin-options"option1 option2 ..." β pass options to theparse-binlogs-pluginas one of the command line arguments. π--row-event-details= never|always|autoβ this option describes how the row replication events in binary logs should be handled. okay here's the breakdown, pay attention:- If the
mysqlbinlogcommand on the ZRM server supports decoding row based replication events and supports verbose mode (MySQL client versions >5.1.28), set the value toalways. - Set the value to
neverif the row based replication events decoding is not supported by themysqlbinlogcommand. - Set the value to
autoif ZRM should parse row based events if it is supported. Support of this feature is determined by ZRM when the value isauto.
- If the
--output-format= html|textβ the output from the command can be in text format (valuetext) or in the form of an HTML table (valuehtml). The default is thetextformat. π--options-filefilename β set the file, along with its full pathname, that contains MySQL command options. π--mysql-binpathMySQL_command_location β set the full path where the MySQL binaries are installed. For example:/opt/lampp/binπ--tmpdirtemp_directory β full path of the directory for storing temporary files and directories on the backup host. The default is to use the system-specified temporary directory on the backup host, e.g./tmp. ποΈ--quiet|--no-quietβ choosequietto suppress display of log messages on stdout. Chooseno-quietto display the log messages to stdout. The default is--no-quiet. π€«--verboseβ provide more detailed output in the log. Verbose output is turned off by default. π--helpβ displays the help message and exits. This command-line-only parameter cannot be specified in the configuration file. π
π EXAMPLES π
mysql-zrm --action parse-binlogs --bin-logs /var/lib/mysql-zrm/backupset1/20060818121532/mysql-bin.[0-9]* /var/lib/mysql-zrm/backupset1/20060819121532/mysql-bin.[0-9]*
The above command parses and displays the relevant contents of all specified binary log files. Use it to find out what position and or timestamp to specify for selective restores. π
π FILES π
/var/lib/mysql-zrmβ directory under which all backup data is stored./etc/mysql-zrm/backup set name/mysql-zrm.confβ configuration file read by ZRM for MySQL.
β RETURN VALUES β
On success, zero is returned. On error, a non-zero value is returned. simple as that. β¨
π¦ SEE ALSO π¦
mysql-zrm(1), mysql-zrm-backup(1), mysql-zrm-manage-backup(1), mysql-zrm-restore(1), mysql-zrm-check(1), mysql-zrm-list(1), mysql-zrm-getconf(1), mysql-zrm-setconf(1), mysql-zrm-purge(1), mysql-zrm-extract-backup(1), mysql-zrm-verify-backup(1), mysql-zrm-abort-backup(1), mysql-zrm-scheduler(1), mysql-zrm-reporter(1), mysql-zrm.conf(5), mysqldump(1), mysqlbinlog(1), mysql(1), lvm(8), Zmanda Recovery Manager for MySQL (http://mysql-backup.zmanda.com/)
π AUTHOR π
Zmanda Inc. (http://www.zmanda.com)
and that's the whole page, bestie!! π«Ά this lil manual page came to you courtesy of Zmanda, Inc. β the ZRM for MySQL era, page mysql-zrm-parse-binlogs(1). mwah. go parse some binlogs. π
β¨
π¦ where this page comes from
- epel 9: MySQL-zrm 3.0-38.el9 Β· GPLv2
- fedora 43: MySQL-zrm 3.0-44.fc43 Β· GPL-2.0-only
- fedora 44: MySQL-zrm 3.0-46.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms