--flush-logs (-F)
This page is part of MariaDB's Documentation.
The parent of this page is: mariadb-dump
& mysqldump
Topics on this page:
Overview
This is a command-line option for the mariadb-dump
& mysqldump
commands.
Flush logs file in server before starting dump. Note that if you dump many databases at once (using the option --databases= or --all-databases), the logs will be flushed for each database dumped. The exception is when using --lock-all-tables or --master-data: in this case the logs will be flushed only once, corresponding to the moment all tables are locked. So if you want your dump and the log flush to happen at the same exact moment you should use --lock-all-tables or --master-data with --flush-logs.