@@ -88,7 +88,7 @@ |
||
| 88 | 88 | $this->bar->advance(); |
| 89 | 89 | $fileParts = pathinfo($this->argument('filename')); |
| 90 | 90 | $this->baseName = $fileParts['filename']; |
| 91 | - $this->archive = Zip::open(config('filesystems.disks.backup.root') . DIRECTORY_SEPARATOR.$this->argument('filename')); |
|
| 91 | + $this->archive = Zip::open(config('filesystems.disks.backup.root').DIRECTORY_SEPARATOR.$this->argument('filename')); |
|
| 92 | 92 | // if (!$this->archive->has('version.txt')) { |
| 93 | 93 | // $this->error('THIS IS NOT A VALID TECH BENCH BACKUP'); |
| 94 | 94 | // $this->error('Exiting'); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | // Create the archive and place the version file in it |
| 84 | 84 | $this->zip = Zip::create(config('filesystems.disks.backup.root').DIRECTORY_SEPARATOR.$backupName); |
| 85 | 85 | $this->bar->advance(); |
| 86 | - $this->zip->add(config('filesystems.disks.backup.root') . DIRECTORY_SEPARATOR . 'version.txt'); |
|
| 86 | + $this->zip->add(config('filesystems.disks.backup.root').DIRECTORY_SEPARATOR.'version.txt'); |
|
| 87 | 87 | $this->bar->advance(); |
| 88 | 88 | $this->zip->add(base_path().DIRECTORY_SEPARATOR.'.env'); |
| 89 | 89 | $this->bar->advance(); |
@@ -115,9 +115,9 @@ discard block |
||
| 115 | 115 | $process = new Process('mysqldump tb-dev5-data -u root'); |
| 116 | 116 | $process->run(); |
| 117 | 117 | |
| 118 | - File::put(config('filesystems.disks.backup.root') . DIRECTORY_SEPARATOR . 'database.sql', $process->getOutput()); |
|
| 118 | + File::put(config('filesystems.disks.backup.root').DIRECTORY_SEPARATOR.'database.sql', $process->getOutput()); |
|
| 119 | 119 | $this->bar->advance(); |
| 120 | - $this->zip->add(config('filesystems.disks.backup.root') . DIRECTORY_SEPARATOR . 'database.sql'); |
|
| 120 | + $this->zip->add(config('filesystems.disks.backup.root').DIRECTORY_SEPARATOR.'database.sql'); |
|
| 121 | 121 | $this->bar->advance(); |
| 122 | 122 | } |
| 123 | 123 | |