src/Backup/Source/Rsync.php 1 location
|
@@ 65-73 (lines=9) @@
|
| 62 |
|
* @param \phpbu\App\Cli\Executable\Rsync $exec |
| 63 |
|
* @param \phpbu\App\Backup\Target $target |
| 64 |
|
*/ |
| 65 |
|
protected function configureExecutable(Executable\Rsync $exec, Target $target) |
| 66 |
|
{ |
| 67 |
|
$exec->fromHost($this->host) |
| 68 |
|
->fromUser($this->user) |
| 69 |
|
->fromPath($this->path) |
| 70 |
|
->toPath($this->getRsyncLocation($target)) |
| 71 |
|
->removeDeleted($this->delete) |
| 72 |
|
->exclude($this->excludes); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
/** |
| 76 |
|
* Create backup status. |
src/Backup/Sync/Rsync.php 1 location
|
@@ 87-96 (lines=10) @@
|
| 84 |
|
* @param \phpbu\App\Cli\Executable\Rsync $exec |
| 85 |
|
* @param \phpbu\App\Backup\Target $target |
| 86 |
|
*/ |
| 87 |
|
protected function configureExecutable(Executable\Rsync $exec, Target $target) |
| 88 |
|
{ |
| 89 |
|
$exec->fromPath($this->getRsyncLocation($target)) |
| 90 |
|
->toHost($this->host) |
| 91 |
|
->toPath($this->path) |
| 92 |
|
->toUser($this->user) |
| 93 |
|
->compressed(!$target->shouldBeCompressed()) |
| 94 |
|
->removeDeleted($this->delete) |
| 95 |
|
->exclude($this->excludes); |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
|