@@ -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; |
@@ -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 | } |
@@ -147,12 +147,12 @@ |
||
147 | 147 | $this->executable->useArgs(Util\Str::replaceTargetPlaceholders($this->args, $target->getPathname())); |
148 | 148 | } else { |
149 | 149 | $this->executable->syncFrom($this->getSyncSource($target)) |
150 | - ->toHost($this->host) |
|
151 | - ->toPath($this->path) |
|
152 | - ->asUser($this->user) |
|
153 | - ->compressed(!$target->shouldBeCompressed()) |
|
154 | - ->removeDeleted($this->delete) |
|
155 | - ->exclude($this->excludes); |
|
150 | + ->toHost($this->host) |
|
151 | + ->toPath($this->path) |
|
152 | + ->asUser($this->user) |
|
153 | + ->compressed(!$target->shouldBeCompressed()) |
|
154 | + ->removeDeleted($this->delete) |
|
155 | + ->exclude($this->excludes); |
|
156 | 156 | } |
157 | 157 | } |
158 | 158 | return $this->executable; |
@@ -116,9 +116,9 @@ |
||
116 | 116 | try { |
117 | 117 | /** @var \ObjectStorage_Container $container */ |
118 | 118 | $container = $objectStorage->with($this->container . $targetPath) |
119 | - ->setLocalFile($sourcePath) |
|
120 | - ->setMeta('description', 'PHPBU Backup: ' . date('r', time())) |
|
121 | - ->setHeader('Content-Type', $target->getMimeType()); |
|
119 | + ->setLocalFile($sourcePath) |
|
120 | + ->setMeta('description', 'PHPBU Backup: ' . date('r', time())) |
|
121 | + ->setHeader('Content-Type', $target->getMimeType()); |
|
122 | 122 | $container->create(); |
123 | 123 | } catch (\Exception $e) { |
124 | 124 | throw new Exception($e->getMessage(), null, $e); |