From f3d9782c99b6837226a8f9b3a2f991fbfaa6dd5e Mon Sep 17 00:00:00 2001 From: Jacob Sanford Date: Wed, 3 Apr 2024 12:24:49 -0300 Subject: [PATCH] Add SQL dump command --- .../Plugin/Commands/DrushSqlDumpCommands.php | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/Robo/Plugin/Commands/DrushSqlDumpCommands.php diff --git a/src/Robo/Plugin/Commands/DrushSqlDumpCommands.php b/src/Robo/Plugin/Commands/DrushSqlDumpCommands.php new file mode 100644 index 0000000..8cf3b5d --- /dev/null +++ b/src/Robo/Plugin/Commands/DrushSqlDumpCommands.php @@ -0,0 +1,45 @@ + 'local', + ] + ): void { + $this->executeDrushCommand( + $this->dockworkerIO, + $options['env'], + [ + 'sql-dump', + '--extra-dump=--no-tablespaces', + '--structure-tables-list="accesslog,batch,cache,cache_*,ctools_css_cache,ctools_object_cache,flood,search_*,history,queue,semaphore,sessions,watchdog"', + ] + ); + } +}