TYPO3\Surf\Task\DumpDatabaseTask

class DumpDatabaseTask

This task dumps a complete database from a source system to a target system.

It takes the following options:

  • sourceHost - The host on which the source database is located.
  • sourceUser - The database user of the source database.
  • sourcePassword - The password of the source user.
  • sourceDatabase - The source database.
  • targetHost - The host on which the target database is located.
  • targetUser - The database user og the target database.
  • targetPassword - The password of the target user.
  • targetDatabase - The target database.
Example:
$workflow
->setTaskOptions(‘TYPO3SurfTaskDumpDatabaseTask’, [
sourceHost => ‘from.outerspace.all’, sourceUser => ‘e_t’, sourcePassword => ‘phoneHome’, sourceDatabase => ‘spaceship’, targetHost => ‘localhost’, targetUser => ‘elliot’, targetPassword => ‘human’, targetDatabase => ‘house’

]

);

property shell

protected ShellCommandService

execute(Node $node, Application $application, Deployment $deployment, $options = [])

Execute this task

Parameters:
simulate(Node $node, Application $application, Deployment $deployment, $options = [])

Simulate this task

Parameters:
resolveOptions(OptionsResolver $resolver)
Parameters:
  • $resolver (OptionsResolver) –
setShellCommandService(ShellCommandService $shellCommandService)
Parameters:
rollback(Node $node, Application $application, Deployment $deployment, $options = [])

Rollback this task

Parameters:
configureOptions($options = [])
Parameters:
  • $options (array) –
Returns:

array