@@ -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; |
@@ -209,18 +209,18 @@ |
||
| 209 | 209 | if (null == $this->executable) { |
| 210 | 210 | $this->executable = new Executable\Mysqldump($this->pathToMysqldump); |
| 211 | 211 | $this->executable->credentials($this->user, $this->password) |
| 212 | - ->useHost($this->host) |
|
| 213 | - ->useQuickMode($this->quick) |
|
| 214 | - ->lockTables($this->lockTables) |
|
| 215 | - ->dumpBlobsHexadecimal($this->hexBlob) |
|
| 216 | - ->useCompression($this->compress) |
|
| 217 | - ->useExtendedInsert($this->extendedInsert) |
|
| 218 | - ->dumpTables($this->tables) |
|
| 219 | - ->dumpDatabases($this->databases) |
|
| 220 | - ->ignoreTables($this->ignoreTables) |
|
| 221 | - ->dumpNoData($this->noData) |
|
| 222 | - ->dumpStructureOnly($this->structureOnly) |
|
| 223 | - ->dumpTo($this->dumpPathname); |
|
| 212 | + ->useHost($this->host) |
|
| 213 | + ->useQuickMode($this->quick) |
|
| 214 | + ->lockTables($this->lockTables) |
|
| 215 | + ->dumpBlobsHexadecimal($this->hexBlob) |
|
| 216 | + ->useCompression($this->compress) |
|
| 217 | + ->useExtendedInsert($this->extendedInsert) |
|
| 218 | + ->dumpTables($this->tables) |
|
| 219 | + ->dumpDatabases($this->databases) |
|
| 220 | + ->ignoreTables($this->ignoreTables) |
|
| 221 | + ->dumpNoData($this->noData) |
|
| 222 | + ->dumpStructureOnly($this->structureOnly) |
|
| 223 | + ->dumpTo($this->dumpPathname); |
|
| 224 | 224 | } |
| 225 | 225 | return $this->executable; |
| 226 | 226 | } |
@@ -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 | } |