diff --git a/Classes/Sitegeist/MagicWand/Command/CloneCommandController.php b/Classes/Sitegeist/MagicWand/Command/CloneCommandController.php index aa0a78f..687df18 100644 --- a/Classes/Sitegeist/MagicWand/Command/CloneCommandController.php +++ b/Classes/Sitegeist/MagicWand/Command/CloneCommandController.php @@ -236,7 +236,7 @@ public function remoteHostCommand( $this->outputHeadLine('Transfer Database'); $this->executeLocalShellCommand( - 'ssh -p %s %s %s@%s \'mysqldump --add-drop-table --host=\'"\'"\'%s\'"\'"\' --port=\'"\'"\'%d\'"\'"\' --user=\'"\'"\'%s\'"\'"\' --password=\'"\'"\'%s\'"\'"\' \'"\'"\'%s\'"\'"\'\' | mysql --host=\'%s\' --port=\'%s\' --user=\'%s\' --password=\'%s\' \'%s\'', + 'ssh -p %s %s %s@%s \'mysqldump --single-transaction --add-drop-table --host=\'"\'"\'%s\'"\'"\' --port=\'"\'"\'%d\'"\'"\' --user=\'"\'"\'%s\'"\'"\' --password=\'"\'"\'%s\'"\'"\' \'"\'"\'%s\'"\'"\'\' | mysql --host=\'%s\' --port=\'%s\' --user=\'%s\' --password=\'%s\' \'%s\'', [ $port, $sshOptions, diff --git a/Classes/Sitegeist/MagicWand/Command/StashCommandController.php b/Classes/Sitegeist/MagicWand/Command/StashCommandController.php index 7dc52ac..39ab8c7 100644 --- a/Classes/Sitegeist/MagicWand/Command/StashCommandController.php +++ b/Classes/Sitegeist/MagicWand/Command/StashCommandController.php @@ -61,7 +61,7 @@ public function createCommand($name) $this->outputHeadLine('Backup Database'); $this->executeLocalShellCommand( - 'mysqldump --add-drop-table --host="%s" --user="%s" --password="%s" %s > %s', + 'mysqldump --single-transaction --add-drop-table --host="%s" --user="%s" --password="%s" %s > %s', [ $this->databaseConfiguration['host'], $this->databaseConfiguration['user'],