| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 55 | public function execute() |
||
| 56 | { |
||
| 57 | $ionicePath = $this->module->binaries['ionice']; |
||
| 58 | $zipPath = $this->module->binaries['zip']; |
||
| 59 | $command = "cd {$this->targetFolder} && {$ionicePath} -c{$this->io} {$zipPath} -r -0 {$this->backupFilePath} * > /dev/null"; |
||
| 60 | exec($command); |
||
| 61 | if (!file_exists($this->backupFilePath)) |
||
| 62 | throw new FolderDumpException(); |
||
| 63 | |||
| 64 | if ($this->module->chmod) |
||
| 65 | chmod($this->backupFilePath, $this->module->chmod); |
||
|
|
|||
| 66 | |||
| 67 | return true; |
||
| 68 | } |
||
| 70 |