From 35ce1f186fa157c14e33b8e85b1e37223374fe0f Mon Sep 17 00:00:00 2001 From: tuutti Date: Thu, 26 Oct 2023 10:14:35 +0300 Subject: [PATCH] Delete old dump, --hex-blob --- src/Drush/Commands/OpenShiftDrushCommands.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Drush/Commands/OpenShiftDrushCommands.php b/src/Drush/Commands/OpenShiftDrushCommands.php index 9815b93..c1c2bd1 100644 --- a/src/Drush/Commands/OpenShiftDrushCommands.php +++ b/src/Drush/Commands/OpenShiftDrushCommands.php @@ -188,13 +188,20 @@ public function getDatabaseDump() : int { $data = json_decode($output); $pod = $this->getDrupalPodName($data->items); + $this->invokeOc([ + 'rsh', + $pod, + 'rm', + '-f', + '/tmp/dump.sql', + ]); $this->invokeOc([ 'rsh', $pod, 'drush', 'sql:dump', '--structure-tables-key=common', - '--extra-dump="--no-tablespaces"', + '--extra-dump=--no-tablespaces --hex-blob', '--result-file=/tmp/dump.sql', ]); $this->invokeOc([