@@ -136,8 +136,8 @@ |
||
136 | 136 | } |
137 | 137 | $this->executable = new Executable\Tar($this->pathToTar); |
138 | 138 | $this->executable->archiveDirectory($this->path) |
139 | - ->useCompression($this->compression) |
|
140 | - ->archiveTo($this->pathToArchive); |
|
139 | + ->useCompression($this->compression) |
|
140 | + ->archiveTo($this->pathToArchive); |
|
141 | 141 | } |
142 | 142 | return $this->executable; |
143 | 143 | } |
@@ -160,13 +160,13 @@ |
||
160 | 160 | if (null == $this->executable) { |
161 | 161 | $this->executable = new Executable\Arangodump($this->pathToArangodump); |
162 | 162 | $this->executable->useEndpoint($this->endpoint) |
163 | - ->credentials($this->username, $this->password) |
|
164 | - ->dumpDatabase($this->database) |
|
165 | - ->dumpCollections($this->collections) |
|
166 | - ->disableAuthentication($this->disableAuthentication) |
|
167 | - ->includeSystemCollections($this->includeSystemCollections) |
|
168 | - ->dumpData($this->dumpData) |
|
169 | - ->dumpTo($this->getDumpDir($target)); |
|
163 | + ->credentials($this->username, $this->password) |
|
164 | + ->dumpDatabase($this->database) |
|
165 | + ->dumpCollections($this->collections) |
|
166 | + ->disableAuthentication($this->disableAuthentication) |
|
167 | + ->includeSystemCollections($this->includeSystemCollections) |
|
168 | + ->dumpData($this->dumpData) |
|
169 | + ->dumpTo($this->getDumpDir($target)); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | return $this->executable; |
@@ -130,10 +130,10 @@ |
||
130 | 130 | if (null == $this->executable) { |
131 | 131 | $this->executable = new Executable\Elasticdump($this->pathToElasticdump); |
132 | 132 | $this->executable->useHost($this->host) |
133 | - ->credentials($this->user, $this->password) |
|
134 | - ->dumpIndex($this->index) |
|
135 | - ->dumpType($this->type) |
|
136 | - ->dumpTo($target->getPathnamePlain()); |
|
133 | + ->credentials($this->user, $this->password) |
|
134 | + ->dumpIndex($this->index) |
|
135 | + ->dumpType($this->type) |
|
136 | + ->dumpTo($target->getPathnamePlain()); |
|
137 | 137 | } |
138 | 138 | return $this->executable; |
139 | 139 | } |
@@ -178,13 +178,13 @@ |
||
178 | 178 | if (null == $this->executable) { |
179 | 179 | $this->executable = new Executable\Mongodump($this->pathToMongodump); |
180 | 180 | $this->executable->dumpToDirectory($this->getDumpDir($target)) |
181 | - ->useIpv6($this->useIPv6) |
|
182 | - ->useHost($this->host) |
|
183 | - ->credentials($this->user, $this->password, $this->authenticationDatabase) |
|
184 | - ->dumpDatabases($this->databases) |
|
185 | - ->dumpCollections($this->collections) |
|
186 | - ->excludeCollections($this->excludeCollections) |
|
187 | - ->excludeCollectionsWithPrefix($this->excludeCollectionsWithPrefix); |
|
181 | + ->useIpv6($this->useIPv6) |
|
182 | + ->useHost($this->host) |
|
183 | + ->credentials($this->user, $this->password, $this->authenticationDatabase) |
|
184 | + ->dumpDatabases($this->databases) |
|
185 | + ->dumpCollections($this->collections) |
|
186 | + ->excludeCollections($this->excludeCollections) |
|
187 | + ->excludeCollectionsWithPrefix($this->excludeCollectionsWithPrefix); |
|
188 | 188 | } |
189 | 189 | |
190 | 190 | return $this->executable; |
@@ -127,9 +127,9 @@ |
||
127 | 127 | if (null == $this->executable) { |
128 | 128 | $this->executable = new Executable\RedisCli($this->pathToRedisCli); |
129 | 129 | $this->executable->backup() |
130 | - ->useHost($this->host) |
|
131 | - ->usePort($this->port) |
|
132 | - ->usePassword($this->password); |
|
130 | + ->useHost($this->host) |
|
131 | + ->usePort($this->port) |
|
132 | + ->usePassword($this->password); |
|
133 | 133 | } |
134 | 134 | return $this->executable; |
135 | 135 | } |
@@ -199,18 +199,18 @@ |
||
199 | 199 | if (null == $this->executable) { |
200 | 200 | $this->executable = new Executable\Mysqldump($this->pathToMysqldump); |
201 | 201 | $this->executable->credentials($this->user, $this->password) |
202 | - ->useHost($this->host) |
|
203 | - ->useQuickMode($this->quick) |
|
204 | - ->lockTables($this->lockTables) |
|
205 | - ->dumpBlobsHexadecimal($this->hexBlob) |
|
206 | - ->useCompression($this->compress) |
|
207 | - ->useExtendedInsert($this->extendedInsert) |
|
208 | - ->dumpTables($this->tables) |
|
209 | - ->dumpDatabases($this->databases) |
|
210 | - ->ignoreTables($this->ignoreTables) |
|
211 | - ->dumpNoData($this->noData) |
|
212 | - ->dumpStructureOnly($this->structureOnly) |
|
213 | - ->dumpTo($target->getPathnamePlain()); |
|
202 | + ->useHost($this->host) |
|
203 | + ->useQuickMode($this->quick) |
|
204 | + ->lockTables($this->lockTables) |
|
205 | + ->dumpBlobsHexadecimal($this->hexBlob) |
|
206 | + ->useCompression($this->compress) |
|
207 | + ->useExtendedInsert($this->extendedInsert) |
|
208 | + ->dumpTables($this->tables) |
|
209 | + ->dumpDatabases($this->databases) |
|
210 | + ->ignoreTables($this->ignoreTables) |
|
211 | + ->dumpNoData($this->noData) |
|
212 | + ->dumpStructureOnly($this->structureOnly) |
|
213 | + ->dumpTo($target->getPathnamePlain()); |
|
214 | 214 | } |
215 | 215 | return $this->executable; |
216 | 216 | } |
@@ -263,20 +263,20 @@ |
||
263 | 263 | if (null == $this->executable) { |
264 | 264 | $this->executable = new Executable\Pgdump($this->pathToPgdump); |
265 | 265 | $this->executable->credentials($this->user, $this->password) |
266 | - ->useHost($this->host) |
|
267 | - ->usePort($this->port) |
|
268 | - ->dumpDatabase($this->database) |
|
269 | - ->dumpSchemas($this->schemas) |
|
270 | - ->excludeSchemas($this->excludeSchemas) |
|
271 | - ->dumpTables($this->tables) |
|
272 | - ->excludeTables($this->excludeTables) |
|
273 | - ->excludeTableData($this->excludeTableData) |
|
274 | - ->dumpSchemaOnly($this->schemaOnly) |
|
275 | - ->dumpDataOnly($this->dataOnly) |
|
276 | - ->dumpNoPrivileges($this->noPrivileges) |
|
277 | - ->dumpNoOwner($this->noOwner) |
|
278 | - ->dumpFormat($this->format) |
|
279 | - ->dumpTo($target->getPathnamePlain()); |
|
266 | + ->useHost($this->host) |
|
267 | + ->usePort($this->port) |
|
268 | + ->dumpDatabase($this->database) |
|
269 | + ->dumpSchemas($this->schemas) |
|
270 | + ->excludeSchemas($this->excludeSchemas) |
|
271 | + ->dumpTables($this->tables) |
|
272 | + ->excludeTables($this->excludeTables) |
|
273 | + ->excludeTableData($this->excludeTableData) |
|
274 | + ->dumpSchemaOnly($this->schemaOnly) |
|
275 | + ->dumpDataOnly($this->dataOnly) |
|
276 | + ->dumpNoPrivileges($this->noPrivileges) |
|
277 | + ->dumpNoOwner($this->noOwner) |
|
278 | + ->dumpFormat($this->format) |
|
279 | + ->dumpTo($target->getPathnamePlain()); |
|
280 | 280 | } |
281 | 281 | return $this->executable; |
282 | 282 | } |
@@ -68,9 +68,9 @@ |
||
68 | 68 | public function getUploadPath(Target $target) |
69 | 69 | { |
70 | 70 | return 's3://' . $this->bucket |
71 | - . (substr($this->path, 0, 1) == '/' ? '' : '/') |
|
72 | - . $this->path |
|
73 | - . (substr($this->path, -1, 1) == '/' ? '' : '/') |
|
74 | - . $target->getFilename(); |
|
71 | + . (substr($this->path, 0, 1) == '/' ? '' : '/') |
|
72 | + . $this->path |
|
73 | + . (substr($this->path, -1, 1) == '/' ? '' : '/') |
|
74 | + . $target->getFilename(); |
|
75 | 75 | } |
76 | 76 | } |