Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
basz committed May 15, 2016
1 parent b6a4888 commit 725aeb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/MysqlBackupService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 {
Expand Down

0 comments on commit 725aeb9

Please sign in to comment.