src/Backup/Sync/Dropbox.php 1 location
|
@@ 130-138 (lines=9) @@
|
127 |
|
* @param \phpbu\App\Backup\Target $target |
128 |
|
* @param \phpbu\App\Result $result |
129 |
|
*/ |
130 |
|
public function cleanup(Target $target, Result $result) |
131 |
|
{ |
132 |
|
if (!$this->cleaner) { |
133 |
|
return; |
134 |
|
} |
135 |
|
|
136 |
|
$collector = new \phpbu\App\Backup\Collector\Dropbox($target, $this->client, $this->path); |
137 |
|
$this->cleaner->cleanup($target, $collector, $result); |
138 |
|
} |
139 |
|
|
140 |
|
/** |
141 |
|
* Create Dropbox api client |
src/Backup/Sync/Openstack.php 1 location
|
@@ 207-215 (lines=9) @@
|
204 |
|
* @param \phpbu\App\Backup\Target $target |
205 |
|
* @param \phpbu\App\Result $result |
206 |
|
*/ |
207 |
|
public function cleanup(Target $target, Result $result) |
208 |
|
{ |
209 |
|
if (!$this->cleaner) { |
210 |
|
return; |
211 |
|
} |
212 |
|
|
213 |
|
$collector = new \phpbu\App\Backup\Collector\OpenStack($target, $this->container, $this->path); |
214 |
|
$this->cleaner->cleanup($target, $collector, $result); |
215 |
|
} |
216 |
|
|
217 |
|
/** |
218 |
|
* @param ObjectStoreService $service |
src/Backup/Sync/Sftp.php 1 location
|
@@ 151-159 (lines=9) @@
|
148 |
|
* @param \phpbu\App\Backup\Target $target |
149 |
|
* @param \phpbu\App\Result $result |
150 |
|
*/ |
151 |
|
public function cleanup(Target $target, Result $result) |
152 |
|
{ |
153 |
|
if (!$this->cleaner) { |
154 |
|
return; |
155 |
|
} |
156 |
|
|
157 |
|
$collector = new \phpbu\App\Backup\Collector\Sftp($target, $this->sftp, $this->remotePath); |
158 |
|
$this->cleaner->cleanup($target, $collector, $result); |
159 |
|
} |
160 |
|
} |
161 |
|
|