@@ -83,7 +83,7 @@ |
||
| 83 | 83 | throw new Exception('no command to execute'); |
| 84 | 84 | } |
| 85 | 85 | $cmd = ($amount > 1 ? '(' . implode(' && ', $this->commands) . ')' : $this->commands[0]) |
| 86 | - . (!empty($this->redirectOutput) ? ' > ' . $this->redirectOutput : ''); |
|
| 86 | + . (!empty($this->redirectOutput) ? ' > ' . $this->redirectOutput : ''); |
|
| 87 | 87 | |
| 88 | 88 | return $cmd; |
| 89 | 89 | } |
@@ -126,10 +126,10 @@ |
||
| 126 | 126 | $this->executable->useSSLCert($this->certFile); |
| 127 | 127 | } else { |
| 128 | 128 | $this->executable->usePassword($this->password) |
| 129 | - ->encodeBase64(true); |
|
| 129 | + ->encodeBase64(true); |
|
| 130 | 130 | } |
| 131 | 131 | $this->executable->useAlgorithm($this->algorithm) |
| 132 | - ->deleteUncrypted(!$this->keepUncrypted); |
|
| 132 | + ->deleteUncrypted(!$this->keepUncrypted); |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | return $this->executable; |
@@ -136,12 +136,12 @@ |
||
| 136 | 136 | if (null == $this->executable) { |
| 137 | 137 | $this->executable = new Executable\Mcrypt($this->pathToMcrypt); |
| 138 | 138 | $this->executable->useAlgorithm($this->algorithm) |
| 139 | - ->useKey($this->key) |
|
| 140 | - ->useKeyFile($this->keyFile) |
|
| 141 | - ->useConfig($this->config) |
|
| 142 | - ->useHash($this->hash) |
|
| 143 | - ->saveAt($target->getPathname()) |
|
| 144 | - ->deleteUncrypted(!$this->keepUncrypted); |
|
| 139 | + ->useKey($this->key) |
|
| 140 | + ->useKeyFile($this->keyFile) |
|
| 141 | + ->useConfig($this->config) |
|
| 142 | + ->useHash($this->hash) |
|
| 143 | + ->saveAt($target->getPathname()) |
|
| 144 | + ->deleteUncrypted(!$this->keepUncrypted); |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | return $this->executable; |
@@ -142,11 +142,11 @@ |
||
| 142 | 142 | if (null == $this->executable) { |
| 143 | 143 | $this->executable = new Executable\Innobackupex($this->pathToXtraBackup); |
| 144 | 144 | $this->executable->useHost($this->host) |
| 145 | - ->credentials($this->user, $this->password) |
|
| 146 | - ->dumpDatabases($this->databases) |
|
| 147 | - ->including($this->include) |
|
| 148 | - ->dumpFrom($this->dataDir) |
|
| 149 | - ->dumpTo($this->getDumpDir($target)); |
|
| 145 | + ->credentials($this->user, $this->password) |
|
| 146 | + ->dumpDatabases($this->databases) |
|
| 147 | + ->including($this->include) |
|
| 148 | + ->dumpFrom($this->dataDir) |
|
| 149 | + ->dumpTo($this->getDumpDir($target)); |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | return $this->executable; |
@@ -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 | } |