| @@ 54-57 (lines=4) @@ | ||
| 51 | break; |
|
| 52 | } |
|
| 53 | // make sure the backup should be executed and is not excluded via the --limit option |
|
| 54 | if (!$configuration->isBackupActive($backup->getName())) { |
|
| 55 | $this->result->debug('skipping backup: ' . $backup->getName() . PHP_EOL); |
|
| 56 | continue; |
|
| 57 | } |
|
| 58 | // setup target and collector, reset failure state |
|
| 59 | $target = $this->factory->createTarget($backup->getTarget()); |
|
| 60 | $collector = new Collector($target); |
|
| @@ 43-46 (lines=4) @@ | ||
| 40 | /** @var \phpbu\App\Configuration\Backup $backup */ |
|
| 41 | foreach ($configuration->getBackups() as $backup) { |
|
| 42 | // make sure the backup should be executed and is not excluded via the --limit option |
|
| 43 | if (!$configuration->isBackupActive($backup->getName())) { |
|
| 44 | $this->result->debug('skipping backup: ' . $backup->getName() . PHP_EOL); |
|
| 45 | continue; |
|
| 46 | } |
|
| 47 | // setup target and collector |
|
| 48 | $target = $this->factory->createTarget($backup->getTarget()); |
|
| 49 | $collector = new Collector($target); |
|