src/Backup/Sync/AmazonS3v3.php 1 location
|
@@ 86-94 (lines=9) @@
|
83 |
|
* @param \phpbu\App\Backup\Target $target |
84 |
|
* @param \phpbu\App\Result $result |
85 |
|
*/ |
86 |
|
public function cleanup(Target $target, Result $result) |
87 |
|
{ |
88 |
|
if (!$this->cleaner) { |
89 |
|
return; |
90 |
|
} |
91 |
|
|
92 |
|
$collector = new \phpbu\App\Backup\Collector\AmazonS3v3($target, $this->client, $this->bucket, $this->path); |
93 |
|
$this->cleaner->cleanup($target, $collector, $result); |
94 |
|
} |
95 |
|
|
96 |
|
/** |
97 |
|
* Simulate the sync execution. |
src/Backup/Sync/Dropbox.php 1 location
|
@@ 131-139 (lines=9) @@
|
128 |
|
* @param \phpbu\App\Backup\Target $target |
129 |
|
* @param \phpbu\App\Result $result |
130 |
|
*/ |
131 |
|
public function cleanup(Target $target, Result $result) |
132 |
|
{ |
133 |
|
if (!$this->cleaner) { |
134 |
|
return; |
135 |
|
} |
136 |
|
|
137 |
|
$collector = new \phpbu\App\Backup\Collector\Dropbox($target, $this->client, $this->path); |
138 |
|
$this->cleaner->cleanup($target, $collector, $result); |
139 |
|
} |
140 |
|
|
141 |
|
/** |
142 |
|
* Create Dropbox api client |
src/Backup/Sync/Openstack.php 1 location
|
@@ 208-216 (lines=9) @@
|
205 |
|
* @param \phpbu\App\Backup\Target $target |
206 |
|
* @param \phpbu\App\Result $result |
207 |
|
*/ |
208 |
|
public function cleanup(Target $target, Result $result) |
209 |
|
{ |
210 |
|
if (!$this->cleaner) { |
211 |
|
return; |
212 |
|
} |
213 |
|
|
214 |
|
$collector = new \phpbu\App\Backup\Collector\OpenStack($target, $this->container, $this->path); |
215 |
|
$this->cleaner->cleanup($target, $collector, $result); |
216 |
|
} |
217 |
|
|
218 |
|
/** |
219 |
|
* @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 |
|
|