@@ -58,8 +58,8 @@ |
||
58 | 58 | ? $target->getPathname() |
59 | 59 | : $target->getPathnamePlain(); |
60 | 60 | $this->executable->archiveTo($archiveName) |
61 | - ->useCompression($target->getCompressor()->getCommand()) |
|
62 | - ->removeSourceDirectory(true); |
|
61 | + ->useCompression($target->getCompressor()->getCommand()) |
|
62 | + ->removeSourceDirectory(true); |
|
63 | 63 | } |
64 | 64 | return $this->executable; |
65 | 65 | } |
@@ -142,13 +142,13 @@ |
||
142 | 142 | if (null == $this->executable) { |
143 | 143 | $this->executable = new Executable\Mcrypt($this->pathToMcrypt); |
144 | 144 | $this->executable->useAlgorithm($this->algorithm) |
145 | - ->useKey($this->key) |
|
146 | - ->useKeyFile($this->keyFile) |
|
147 | - ->useConfig($this->config) |
|
148 | - ->useHash($this->hash) |
|
149 | - ->saveAt($target->getPathname()) |
|
150 | - ->deleteUncrypted(!$this->keepUncrypted) |
|
151 | - ->showStdErr($this->showStdErr); |
|
145 | + ->useKey($this->key) |
|
146 | + ->useKeyFile($this->keyFile) |
|
147 | + ->useConfig($this->config) |
|
148 | + ->useHash($this->hash) |
|
149 | + ->saveAt($target->getPathname()) |
|
150 | + ->deleteUncrypted(!$this->keepUncrypted) |
|
151 | + ->showStdErr($this->showStdErr); |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | return $this->executable; |
@@ -132,11 +132,11 @@ |
||
132 | 132 | $this->executable->useSSLCert($this->certFile); |
133 | 133 | } else { |
134 | 134 | $this->executable->usePassword($this->password) |
135 | - ->encodeBase64(true); |
|
135 | + ->encodeBase64(true); |
|
136 | 136 | } |
137 | 137 | $this->executable->useAlgorithm($this->algorithm) |
138 | - ->deleteUncrypted(!$this->keepUncrypted) |
|
139 | - ->showStdErr($this->showStdErr); |
|
138 | + ->deleteUncrypted(!$this->keepUncrypted) |
|
139 | + ->showStdErr($this->showStdErr); |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | return $this->executable; |
@@ -168,14 +168,14 @@ |
||
168 | 168 | if (null == $this->executable) { |
169 | 169 | $this->executable = new Executable\Arangodump($this->pathToArangodump); |
170 | 170 | $this->executable->useEndpoint($this->endpoint) |
171 | - ->credentials($this->username, $this->password) |
|
172 | - ->dumpDatabase($this->database) |
|
173 | - ->dumpCollections($this->collections) |
|
174 | - ->disableAuthentication($this->disableAuthentication) |
|
175 | - ->includeSystemCollections($this->includeSystemCollections) |
|
176 | - ->dumpData($this->dumpData) |
|
177 | - ->dumpTo($this->getDumpDir($target)) |
|
178 | - ->showStdErr($this->showStdErr); |
|
171 | + ->credentials($this->username, $this->password) |
|
172 | + ->dumpDatabase($this->database) |
|
173 | + ->dumpCollections($this->collections) |
|
174 | + ->disableAuthentication($this->disableAuthentication) |
|
175 | + ->includeSystemCollections($this->includeSystemCollections) |
|
176 | + ->dumpData($this->dumpData) |
|
177 | + ->dumpTo($this->getDumpDir($target)) |
|
178 | + ->showStdErr($this->showStdErr); |
|
179 | 179 | } |
180 | 180 | |
181 | 181 | return $this->executable; |
@@ -138,11 +138,11 @@ |
||
138 | 138 | if (null == $this->executable) { |
139 | 139 | $this->executable = new Executable\Elasticdump($this->pathToElasticdump); |
140 | 140 | $this->executable->useHost($this->host) |
141 | - ->credentials($this->user, $this->password) |
|
142 | - ->dumpIndex($this->index) |
|
143 | - ->dumpType($this->type) |
|
144 | - ->dumpTo($target->getPathnamePlain()) |
|
145 | - ->showStdErr($this->showStdErr); |
|
141 | + ->credentials($this->user, $this->password) |
|
142 | + ->dumpIndex($this->index) |
|
143 | + ->dumpType($this->type) |
|
144 | + ->dumpTo($target->getPathnamePlain()) |
|
145 | + ->showStdErr($this->showStdErr); |
|
146 | 146 | } |
147 | 147 | return $this->executable; |
148 | 148 | } |
@@ -186,14 +186,14 @@ |
||
186 | 186 | if (null == $this->executable) { |
187 | 187 | $this->executable = new Executable\Mongodump($this->pathToMongodump); |
188 | 188 | $this->executable->dumpToDirectory($this->getDumpDir($target)) |
189 | - ->useIpv6($this->useIPv6) |
|
190 | - ->useHost($this->host) |
|
191 | - ->credentials($this->user, $this->password, $this->authenticationDatabase) |
|
192 | - ->dumpDatabases($this->databases) |
|
193 | - ->dumpCollections($this->collections) |
|
194 | - ->excludeCollections($this->excludeCollections) |
|
195 | - ->excludeCollectionsWithPrefix($this->excludeCollectionsWithPrefix) |
|
196 | - ->showStdErr($this->showStdErr); |
|
189 | + ->useIpv6($this->useIPv6) |
|
190 | + ->useHost($this->host) |
|
191 | + ->credentials($this->user, $this->password, $this->authenticationDatabase) |
|
192 | + ->dumpDatabases($this->databases) |
|
193 | + ->dumpCollections($this->collections) |
|
194 | + ->excludeCollections($this->excludeCollections) |
|
195 | + ->excludeCollectionsWithPrefix($this->excludeCollectionsWithPrefix) |
|
196 | + ->showStdErr($this->showStdErr); |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | return $this->executable; |
@@ -207,18 +207,18 @@ |
||
207 | 207 | if (null == $this->executable) { |
208 | 208 | $this->executable = new Executable\Mysqldump($this->pathToMysqldump); |
209 | 209 | $this->executable->credentials($this->user, $this->password) |
210 | - ->useHost($this->host) |
|
211 | - ->useQuickMode($this->quick) |
|
212 | - ->dumpBlobsHexadecimal($this->hexBlob) |
|
213 | - ->useCompression($this->compress) |
|
214 | - ->useExtendedInsert($this->extendedInsert) |
|
215 | - ->dumpTables($this->tables) |
|
216 | - ->dumpDatabases($this->databases) |
|
217 | - ->ignoreTables($this->ignoreTables) |
|
218 | - ->dumpNoData($this->noData) |
|
219 | - ->dumpStructureOnly($this->structureOnly) |
|
220 | - ->dumpTo($this->dumpPathname) |
|
221 | - ->showStdErr($this->showStdErr); |
|
210 | + ->useHost($this->host) |
|
211 | + ->useQuickMode($this->quick) |
|
212 | + ->dumpBlobsHexadecimal($this->hexBlob) |
|
213 | + ->useCompression($this->compress) |
|
214 | + ->useExtendedInsert($this->extendedInsert) |
|
215 | + ->dumpTables($this->tables) |
|
216 | + ->dumpDatabases($this->databases) |
|
217 | + ->ignoreTables($this->ignoreTables) |
|
218 | + ->dumpNoData($this->noData) |
|
219 | + ->dumpStructureOnly($this->structureOnly) |
|
220 | + ->dumpTo($this->dumpPathname) |
|
221 | + ->showStdErr($this->showStdErr); |
|
222 | 222 | } |
223 | 223 | return $this->executable; |
224 | 224 | } |
@@ -144,9 +144,9 @@ |
||
144 | 144 | } |
145 | 145 | $this->executable = new Executable\Tar($this->pathToTar); |
146 | 146 | $this->executable->archiveDirectory($this->path) |
147 | - ->useCompression($this->compression) |
|
148 | - ->archiveTo($this->pathToArchive) |
|
149 | - ->showStdErr($this->showStdErr); |
|
147 | + ->useCompression($this->compression) |
|
148 | + ->archiveTo($this->pathToArchive) |
|
149 | + ->showStdErr($this->showStdErr); |
|
150 | 150 | } |
151 | 151 | return $this->executable; |
152 | 152 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | { |
84 | 84 | |
85 | 85 | // silence ftp errors |
86 | - $old = error_reporting(0); |
|
86 | + $old = error_reporting(0); |
|
87 | 87 | if (!$ftpConnection = ftp_connect($this->host)) { |
88 | 88 | throw new Exception( |
89 | 89 | sprintf( |