Skip to content

Commit

Permalink
add --no-tablespaces parameters to mysqldump
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashrem committed Oct 15, 2020
1 parent 323676f commit 6f8021a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ public function storeDbDump()
}

$format = sprintf(
'%s %s %s',
'%s %s %s %s',
'mysqldump --defaults-file=%s --host=%s --port=%s',
'--no-tablespaces'
$additionalArguments,
'%s > %s'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,13 @@ public function saveTasksDataProvider(): array
],
[
'tasks' => [
['command' => '{magentoRoot}run.php mysqldump db > db-$(date +%F).sql']
['command' => '{magentoRoot}run.php mysqldump --no-tablespaces db > db-$(date +%F).sql']
],
'content' => '* * * * * /bin/php /var/www/cron.php',
'contentToSave' => '* * * * * /bin/php /var/www/cron.php' . PHP_EOL
. CrontabManagerInterface::TASKS_BLOCK_START . ' ' . hash("sha256", BP) . PHP_EOL
. '* * * * * ' . PHP_BINARY . ' /var/www/magento2/run.php'
. ' mysqldump db > db-\$(date +%%F).sql' . PHP_EOL
. ' mysqldump --no-tablespaces db > db-\$(date +%%F).sql' . PHP_EOL
. CrontabManagerInterface::TASKS_BLOCK_END . ' ' . hash("sha256", BP) . PHP_EOL,
],
];
Expand Down

0 comments on commit 6f8021a

Please sign in to comment.