src/Backup/Sync/YandexDisk.php 1 location
|
@@ 141-147 (lines=7) @@
|
138 |
|
* @param Target $target |
139 |
|
* @param Result $result |
140 |
|
*/ |
141 |
|
public function simulate(Target $target, Result $result): void |
142 |
|
{ |
143 |
|
$result->debug('sync backup to yandex disk' . PHP_EOL); |
144 |
|
|
145 |
|
$this->isSimulation = true; |
146 |
|
$this->simulateRemoteCleanup($target, $result); |
147 |
|
} |
148 |
|
|
149 |
|
/** |
150 |
|
* Creates the YandexDisk collector. |
src/Backup/Sync/GoogleDrive.php 1 location
|
@@ 156-162 (lines=7) @@
|
153 |
|
* @param \phpbu\App\Backup\Target $target |
154 |
|
* @param \phpbu\App\Result $result |
155 |
|
*/ |
156 |
|
public function simulate(Target $target, Result $result) |
157 |
|
{ |
158 |
|
$result->debug('sync backup to google drive' . PHP_EOL); |
159 |
|
|
160 |
|
$this->isSimulation = true; |
161 |
|
$this->simulateRemoteCleanup($target, $result); |
162 |
|
} |
163 |
|
|
164 |
|
/** |
165 |
|
* Setup google api client and google drive service. |