Created
July 25, 2014 16:43
-
-
Save pgasiorowski/e4f4a733d8aece74a180 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $innodb_data_file_path = | |
get_option(\%config, $option_defaults_group, 'innodb_data_file_path'); | |
# run ibbackup as a child process | |
$cmdline = "$option_ibbackup_binary $options"; | |
# Only use --rebuild-indexes in the first xtrabackup call | |
$cmdline_copy = $cmdline; | |
if ($option_rebuild_indexes) { | |
$cmdline = $cmdline . " --rebuild-indexes" | |
} | |
if ($option_rebuild_threads) { | |
$cmdline = $cmdline . " --rebuild-threads=$option_rebuild_threads" | |
} | |
$now = current_time(); | |
print STDERR "\n$now $prefix Starting ibbackup with command: $cmdline\n\n"; | |
$rcode = system("$cmdline"); | |
if ($rcode) { | |
# failure | |
die "\n$prefix ibbackup failed"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment