@@ -121,7 +121,7 @@ public function handle(): void
121121 $ this ->container_name = "{$ this ->database ->name }- $ serviceUuid " ;
122122 $ this ->directory_name = $ serviceName .'- ' .$ this ->container_name ;
123123 $ commands [] = "docker exec $ this ->container_name env | grep POSTGRES_ " ;
124- $ envs = instant_remote_process ($ commands , $ this ->server );
124+ $ envs = instant_remote_process ($ commands , $ this ->server , true , false , null , disableMultiplexing: true );
125125 $ envs = str ($ envs )->explode ("\n" );
126126
127127 $ user = $ envs ->filter (function ($ env ) {
@@ -152,7 +152,7 @@ public function handle(): void
152152 $ this ->container_name = "{$ this ->database ->name }- $ serviceUuid " ;
153153 $ this ->directory_name = $ serviceName .'- ' .$ this ->container_name ;
154154 $ commands [] = "docker exec $ this ->container_name env | grep MYSQL_ " ;
155- $ envs = instant_remote_process ($ commands , $ this ->server );
155+ $ envs = instant_remote_process ($ commands , $ this ->server , true , false , null , disableMultiplexing: true );
156156 $ envs = str ($ envs )->explode ("\n" );
157157
158158 $ rootPassword = $ envs ->filter (function ($ env ) {
@@ -175,7 +175,7 @@ public function handle(): void
175175 $ this ->container_name = "{$ this ->database ->name }- $ serviceUuid " ;
176176 $ this ->directory_name = $ serviceName .'- ' .$ this ->container_name ;
177177 $ commands [] = "docker exec $ this ->container_name env " ;
178- $ envs = instant_remote_process ($ commands , $ this ->server );
178+ $ envs = instant_remote_process ($ commands , $ this ->server , true , false , null , disableMultiplexing: true );
179179 $ envs = str ($ envs )->explode ("\n" );
180180 $ rootPassword = $ envs ->filter (function ($ env ) {
181181 return str ($ env )->startsWith ('MARIADB_ROOT_PASSWORD= ' );
@@ -217,7 +217,7 @@ public function handle(): void
217217 try {
218218 $ commands = [];
219219 $ commands [] = "docker exec $ this ->container_name env | grep MONGO_INITDB_ " ;
220- $ envs = instant_remote_process ($ commands , $ this ->server );
220+ $ envs = instant_remote_process ($ commands , $ this ->server , true , false , null , disableMultiplexing: true );
221221
222222 if (filled ($ envs )) {
223223 $ envs = str ($ envs )->explode ("\n" );
@@ -508,7 +508,7 @@ private function backup_standalone_mongodb(string $databaseWithCollections): voi
508508 }
509509 }
510510 }
511- $ this ->backup_output = instant_remote_process ($ commands , $ this ->server , true , false , $ this ->timeout );
511+ $ this ->backup_output = instant_remote_process ($ commands , $ this ->server , true , false , $ this ->timeout , disableMultiplexing: true );
512512 $ this ->backup_output = trim ($ this ->backup_output );
513513 if ($ this ->backup_output === '' ) {
514514 $ this ->backup_output = null ;
@@ -537,7 +537,7 @@ private function backup_standalone_postgresql(string $database): void
537537 }
538538
539539 $ commands [] = $ backupCommand ;
540- $ this ->backup_output = instant_remote_process ($ commands , $ this ->server , true , false , $ this ->timeout );
540+ $ this ->backup_output = instant_remote_process ($ commands , $ this ->server , true , false , $ this ->timeout , disableMultiplexing: true );
541541 $ this ->backup_output = trim ($ this ->backup_output );
542542 if ($ this ->backup_output === '' ) {
543543 $ this ->backup_output = null ;
@@ -560,7 +560,7 @@ private function backup_standalone_mysql(string $database): void
560560 $ escapedDatabase = escapeshellarg ($ database );
561561 $ commands [] = "docker exec $ this ->container_name mysqldump -u root -p \"{$ this ->database ->mysql_root_password }\" $ escapedDatabase > $ this ->backup_location " ;
562562 }
563- $ this ->backup_output = instant_remote_process ($ commands , $ this ->server , true , false , $ this ->timeout );
563+ $ this ->backup_output = instant_remote_process ($ commands , $ this ->server , true , false , $ this ->timeout , disableMultiplexing: true );
564564 $ this ->backup_output = trim ($ this ->backup_output );
565565 if ($ this ->backup_output === '' ) {
566566 $ this ->backup_output = null ;
@@ -583,7 +583,7 @@ private function backup_standalone_mariadb(string $database): void
583583 $ escapedDatabase = escapeshellarg ($ database );
584584 $ commands [] = "docker exec $ this ->container_name mariadb-dump -u root -p \"{$ this ->database ->mariadb_root_password }\" $ escapedDatabase > $ this ->backup_location " ;
585585 }
586- $ this ->backup_output = instant_remote_process ($ commands , $ this ->server , true , false , $ this ->timeout );
586+ $ this ->backup_output = instant_remote_process ($ commands , $ this ->server , true , false , $ this ->timeout , disableMultiplexing: true );
587587 $ this ->backup_output = trim ($ this ->backup_output );
588588 if ($ this ->backup_output === '' ) {
589589 $ this ->backup_output = null ;
@@ -614,7 +614,7 @@ private function add_to_error_output($output): void
614614
615615 private function calculate_size ()
616616 {
617- return instant_remote_process (["du -b $ this ->backup_location | cut -f1 " ], $ this ->server , false );
617+ return instant_remote_process (["du -b $ this ->backup_location | cut -f1 " ], $ this ->server , false , false , null , disableMultiplexing: true );
618618 }
619619
620620 private function upload_to_s3 (): void
@@ -637,9 +637,9 @@ private function upload_to_s3(): void
637637
638638 $ fullImageName = $ this ->getFullImageName ();
639639
640- $ containerExists = instant_remote_process (["docker ps -a -q -f name=backup-of- {$ this ->backup_log_uuid }" ], $ this ->server , false );
640+ $ containerExists = instant_remote_process (["docker ps -a -q -f name=backup-of- {$ this ->backup_log_uuid }" ], $ this ->server , false , false , null , disableMultiplexing: true );
641641 if (filled ($ containerExists )) {
642- instant_remote_process (["docker rm -f backup-of- {$ this ->backup_log_uuid }" ], $ this ->server , false );
642+ instant_remote_process (["docker rm -f backup-of- {$ this ->backup_log_uuid }" ], $ this ->server , false , false , null , disableMultiplexing: true );
643643 }
644644
645645 if (isDev ()) {
@@ -661,7 +661,7 @@ private function upload_to_s3(): void
661661
662662 $ commands [] = "docker exec backup-of- {$ this ->backup_log_uuid } mc alias set temporary {$ escapedEndpoint } {$ escapedKey } {$ escapedSecret }" ;
663663 $ commands [] = "docker exec backup-of- {$ this ->backup_log_uuid } mc cp $ this ->backup_location temporary/ $ bucket {$ this ->backup_dir }/ " ;
664- instant_remote_process ($ commands , $ this ->server );
664+ instant_remote_process ($ commands , $ this ->server , true , false , null , disableMultiplexing: true );
665665
666666 $ this ->s3_uploaded = true ;
667667 } catch (\Throwable $ e ) {
@@ -670,7 +670,7 @@ private function upload_to_s3(): void
670670 throw $ e ;
671671 } finally {
672672 $ command = "docker rm -f backup-of- {$ this ->backup_log_uuid }" ;
673- instant_remote_process ([$ command ], $ this ->server );
673+ instant_remote_process ([$ command ], $ this ->server , true , false , null , disableMultiplexing: true );
674674 }
675675 }
676676
0 commit comments