diff --git a/src/Service/MysqlBackupService.php b/src/Service/MysqlBackupService.php index a9d1f3e..5154f42 100644 --- a/src/Service/MysqlBackupService.php +++ b/src/Service/MysqlBackupService.php @@ -57,7 +57,7 @@ public function __construct( public function doBackup() { $date = date('YmdHisO'); - $dumpName = $this->options->getPath() . $date . '.sql'; + $dumpName = trim($this->options->getPath() . $date . '.sql', '/'); switch ($this->dumperOptions->getCompress()) { case Mysqldump::GZIP: @@ -68,7 +68,7 @@ public function doBackup() break; } - $tmpFile = tempnam(sys_get_temp_dir(), 'bsb-offsite-mysql-backup-'); + $tmpFile = tempnam(sys_get_temp_dir(), 'bsb-flysystem-mysql-backup-'); $fileStream = fopen($tmpFile, 'rb'); try {