| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | public function backup(): void |
||
| 17 | { |
||
| 18 | $binaryPath = $this->module->binaries['pg_dump']; |
||
| 19 | $ionicePath = $this->module->binaries['ionice']; |
||
| 20 | $command = "PGPASSWORD='{$this->password}' {$ionicePath} -c{$this->io} {$binaryPath} -h {$this->host} -p {$this->port} -U {$this->username} -Fc -Z1 {$this->database} -f {$this->backupFilePath}"; |
||
| 21 | exec($command, $return); |
||
| 22 | if (!empty($return)) |
||
| 23 | throw new PostgresDumpException(); |
||
| 24 | } |
||
| 40 |