View Full Version : Should post-backup script be called twice?

December 16th, 2013, 09:31 PM
The post-backup template script (/usr/share/mysql-zrm/plugins/post-backup.pl) states:

# Parameters passed to the plugin
# -------------------------------
# First parameter is the value of "post-backup-plugin-options" from the
# mysql-zrm.conf(5) configuration file.
# Second parameter is the data being backed up. It will be either
# '--all-databases' or
# '--databases <"db1 db2 ...">' or
# '--database <db>' and '--tables <"table1 table2 ...">'
# Third parameter will be --backup-directory <path>
# Fourth parameter will be --checksum-pending
# The second time the post-backup-plugin is called it will have 2 parameters
# First parameter will be --backup-directory <path>
# Second parameter will be --checksum-finished

I can't seem to figure out when it's supposed to be called the "second time", it appears to be only called once. Is there an option that has to be switched on to make ZRM call the post script again AFTER checksumming?

December 19th, 2013, 03:50 PM
Never mind, figured it out.