diff --git a/Controller/EasyBackupController.php b/Controller/EasyBackupController.php index bb67084..6f47b98 100755 --- a/Controller/EasyBackupController.php +++ b/Controller/EasyBackupController.php @@ -274,12 +274,21 @@ private function backupDatabase(string $sqlDumpName) $this->filesystem->touch($sqlDumpName); foreach ($outputArr as $line) { - $this->filesystem->appendToFile($sqlDumpName, $line."\n"); + if (!$this->startsWith('[Warning]', $line)) { + $this->filesystem->appendToFile($sqlDumpName, $line."\n"); + } } } } } + private function startsWith($needle, $haystack) + { + $length = strlen($needle); + + return substr($haystack, 0, $length) === $needle; + } + private function zipData($source, $destination) { if (extension_loaded('zip') === true) {