@@ -105,10 +105,10 @@ |
||
105 | 105 | $executable->useSSLCert($this->certFile); |
106 | 106 | } else { |
107 | 107 | $executable->usePassword($this->password) |
108 | - ->encodeBase64(true); |
|
108 | + ->encodeBase64(true); |
|
109 | 109 | } |
110 | 110 | $executable->useAlgorithm($this->algorithm) |
111 | - ->deleteUncrypted(!$this->keepUncrypted); |
|
111 | + ->deleteUncrypted(!$this->keepUncrypted); |
|
112 | 112 | return $executable; |
113 | 113 | } |
114 | 114 | } |
@@ -115,12 +115,12 @@ |
||
115 | 115 | { |
116 | 116 | $executable = new Executable\Mcrypt((string)$this->pathToMcrypt); |
117 | 117 | $executable->useAlgorithm($this->algorithm) |
118 | - ->useKey($this->key) |
|
119 | - ->useKeyFile($this->keyFile) |
|
120 | - ->useConfig($this->config) |
|
121 | - ->useHash($this->hash) |
|
122 | - ->saveAt($target->getPathname()) |
|
123 | - ->deleteUncrypted(!$this->keepUncrypted); |
|
118 | + ->useKey($this->key) |
|
119 | + ->useKeyFile($this->keyFile) |
|
120 | + ->useConfig($this->config) |
|
121 | + ->useHash($this->hash) |
|
122 | + ->saveAt($target->getPathname()) |
|
123 | + ->deleteUncrypted(!$this->keepUncrypted); |
|
124 | 124 | return $executable; |
125 | 125 | } |
126 | 126 | } |
@@ -176,13 +176,13 @@ |
||
176 | 176 | { |
177 | 177 | $executable = new Executable\Mongodump($this->pathToMongodump); |
178 | 178 | $executable->dumpToDirectory($this->getDumpDir($target)) |
179 | - ->useIpv6($this->useIPv6) |
|
180 | - ->useHost($this->host) |
|
181 | - ->credentials($this->user, $this->password, $this->authenticationDatabase) |
|
182 | - ->dumpDatabases($this->databases) |
|
183 | - ->dumpCollections($this->collections) |
|
184 | - ->excludeCollections($this->excludeCollections) |
|
185 | - ->excludeCollectionsWithPrefix($this->excludeCollectionsWithPrefix); |
|
179 | + ->useIpv6($this->useIPv6) |
|
180 | + ->useHost($this->host) |
|
181 | + ->credentials($this->user, $this->password, $this->authenticationDatabase) |
|
182 | + ->dumpDatabases($this->databases) |
|
183 | + ->dumpCollections($this->collections) |
|
184 | + ->excludeCollections($this->excludeCollections) |
|
185 | + ->excludeCollectionsWithPrefix($this->excludeCollectionsWithPrefix); |
|
186 | 186 | return $executable; |
187 | 187 | } |
188 | 188 |
@@ -126,10 +126,10 @@ |
||
126 | 126 | { |
127 | 127 | $executable = new Executable\Elasticdump($this->pathToElasticdump); |
128 | 128 | $executable->useHost($this->host) |
129 | - ->credentials($this->user, $this->password) |
|
130 | - ->dumpIndex($this->index) |
|
131 | - ->dumpType($this->type) |
|
132 | - ->dumpTo($target->getPathnamePlain()); |
|
129 | + ->credentials($this->user, $this->password) |
|
130 | + ->dumpIndex($this->index) |
|
131 | + ->dumpType($this->type) |
|
132 | + ->dumpTo($target->getPathnamePlain()); |
|
133 | 133 | return $executable; |
134 | 134 | } |
135 | 135 |
@@ -74,11 +74,11 @@ |
||
74 | 74 | ); |
75 | 75 | } else { |
76 | 76 | $executable->fromHost($this->host) |
77 | - ->fromUser($this->user) |
|
78 | - ->fromPath($this->path) |
|
79 | - ->toPath($this->getRsyncLocation($target, true)) |
|
80 | - ->removeDeleted($this->delete) |
|
81 | - ->exclude($this->excludes); |
|
77 | + ->fromUser($this->user) |
|
78 | + ->fromPath($this->path) |
|
79 | + ->toPath($this->getRsyncLocation($target, true)) |
|
80 | + ->removeDeleted($this->delete) |
|
81 | + ->exclude($this->excludes); |
|
82 | 82 | } |
83 | 83 | return $executable; |
84 | 84 | } |
@@ -227,20 +227,20 @@ |
||
227 | 227 | { |
228 | 228 | $executable = new Executable\Mysqldump($this->pathToMysqldump); |
229 | 229 | $executable->credentials($this->user, $this->password) |
230 | - ->useHost($this->host) |
|
231 | - ->useQuickMode($this->quick) |
|
232 | - ->lockTables($this->lockTables) |
|
233 | - ->dumpBlobsHexadecimal($this->hexBlob) |
|
234 | - ->useCompression($this->compress) |
|
235 | - ->useExtendedInsert($this->extendedInsert) |
|
236 | - ->dumpTables($this->tables) |
|
237 | - ->singleTransaction($this->singleTransaction) |
|
238 | - ->dumpDatabases($this->databases) |
|
239 | - ->ignoreTables($this->ignoreTables) |
|
240 | - ->produceFilePerTable($this->filePerTable) |
|
241 | - ->dumpNoData($this->noData) |
|
242 | - ->dumpStructureOnly($this->structureOnly) |
|
243 | - ->dumpTo($this->getDumpTarget($target)); |
|
230 | + ->useHost($this->host) |
|
231 | + ->useQuickMode($this->quick) |
|
232 | + ->lockTables($this->lockTables) |
|
233 | + ->dumpBlobsHexadecimal($this->hexBlob) |
|
234 | + ->useCompression($this->compress) |
|
235 | + ->useExtendedInsert($this->extendedInsert) |
|
236 | + ->dumpTables($this->tables) |
|
237 | + ->singleTransaction($this->singleTransaction) |
|
238 | + ->dumpDatabases($this->databases) |
|
239 | + ->ignoreTables($this->ignoreTables) |
|
240 | + ->produceFilePerTable($this->filePerTable) |
|
241 | + ->dumpNoData($this->noData) |
|
242 | + ->dumpStructureOnly($this->structureOnly) |
|
243 | + ->dumpTo($this->getDumpTarget($target)); |
|
244 | 244 | // if compression is active and commands can be piped |
245 | 245 | if ($this->isHandlingCompression($target)) { |
246 | 246 | $executable->compressOutput($target->getCompression()); |
@@ -124,9 +124,9 @@ |
||
124 | 124 | { |
125 | 125 | $executable = new Executable\RedisCli($this->pathToRedisCli); |
126 | 126 | $executable->backup() |
127 | - ->useHost($this->host) |
|
128 | - ->usePort($this->port) |
|
129 | - ->usePassword($this->password); |
|
127 | + ->useHost($this->host) |
|
128 | + ->usePort($this->port) |
|
129 | + ->usePassword($this->password); |
|
130 | 130 | return $executable; |
131 | 131 | } |
132 | 132 |
@@ -152,10 +152,10 @@ |
||
152 | 152 | |
153 | 153 | $executable = new Executable\Tar($this->pathToTar); |
154 | 154 | $executable->archiveDirectory($this->path) |
155 | - ->useCompression($this->compression) |
|
156 | - ->ignoreFailedRead($this->ignoreFailedRead) |
|
157 | - ->removeSourceDirectory($this->removeSourceDir) |
|
158 | - ->archiveTo($this->pathToArchive); |
|
155 | + ->useCompression($this->compression) |
|
156 | + ->ignoreFailedRead($this->ignoreFailedRead) |
|
157 | + ->removeSourceDirectory($this->removeSourceDir) |
|
158 | + ->archiveTo($this->pathToArchive); |
|
159 | 159 | return $executable; |
160 | 160 | } |
161 | 161 |
@@ -262,20 +262,20 @@ |
||
262 | 262 | { |
263 | 263 | $executable = new Executable\Pgdump($this->pathToPgdump); |
264 | 264 | $executable->credentials($this->user, $this->password) |
265 | - ->useHost($this->host) |
|
266 | - ->usePort($this->port) |
|
267 | - ->dumpDatabase($this->database) |
|
268 | - ->dumpSchemas($this->schemas) |
|
269 | - ->excludeSchemas($this->excludeSchemas) |
|
270 | - ->dumpTables($this->tables) |
|
271 | - ->excludeTables($this->excludeTables) |
|
272 | - ->excludeTableData($this->excludeTableData) |
|
273 | - ->dumpSchemaOnly($this->schemaOnly) |
|
274 | - ->dumpDataOnly($this->dataOnly) |
|
275 | - ->dumpNoPrivileges($this->noPrivileges) |
|
276 | - ->dumpNoOwner($this->noOwner) |
|
277 | - ->dumpFormat($this->format) |
|
278 | - ->dumpTo($target->getPathnamePlain()); |
|
265 | + ->useHost($this->host) |
|
266 | + ->usePort($this->port) |
|
267 | + ->dumpDatabase($this->database) |
|
268 | + ->dumpSchemas($this->schemas) |
|
269 | + ->excludeSchemas($this->excludeSchemas) |
|
270 | + ->dumpTables($this->tables) |
|
271 | + ->excludeTables($this->excludeTables) |
|
272 | + ->excludeTableData($this->excludeTableData) |
|
273 | + ->dumpSchemaOnly($this->schemaOnly) |
|
274 | + ->dumpDataOnly($this->dataOnly) |
|
275 | + ->dumpNoPrivileges($this->noPrivileges) |
|
276 | + ->dumpNoOwner($this->noOwner) |
|
277 | + ->dumpFormat($this->format) |
|
278 | + ->dumpTo($target->getPathnamePlain()); |
|
279 | 279 | return $executable; |
280 | 280 | } |
281 | 281 |