@@ -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; |
@@ -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 | } |
@@ -263,20 +263,20 @@ |
||
| 263 | 263 | if (null == $this->executable) { |
| 264 | 264 | $this->executable = new Executable\Pgdump($this->pathToPgdump); |
| 265 | 265 | $this->executable->credentials($this->user, $this->password) |
| 266 | - ->useHost($this->host) |
|
| 267 | - ->usePort($this->port) |
|
| 268 | - ->dumpDatabase($this->database) |
|
| 269 | - ->dumpSchemas($this->schemas) |
|
| 270 | - ->excludeSchemas($this->excludeSchemas) |
|
| 271 | - ->dumpTables($this->tables) |
|
| 272 | - ->excludeTables($this->excludeTables) |
|
| 273 | - ->excludeTableData($this->excludeTableData) |
|
| 274 | - ->dumpSchemaOnly($this->schemaOnly) |
|
| 275 | - ->dumpDataOnly($this->dataOnly) |
|
| 276 | - ->dumpNoPrivileges($this->noPrivileges) |
|
| 277 | - ->dumpNoOwner($this->noOwner) |
|
| 278 | - ->dumpFormat($this->format) |
|
| 279 | - ->dumpTo($target->getPathnamePlain()); |
|
| 266 | + ->useHost($this->host) |
|
| 267 | + ->usePort($this->port) |
|
| 268 | + ->dumpDatabase($this->database) |
|
| 269 | + ->dumpSchemas($this->schemas) |
|
| 270 | + ->excludeSchemas($this->excludeSchemas) |
|
| 271 | + ->dumpTables($this->tables) |
|
| 272 | + ->excludeTables($this->excludeTables) |
|
| 273 | + ->excludeTableData($this->excludeTableData) |
|
| 274 | + ->dumpSchemaOnly($this->schemaOnly) |
|
| 275 | + ->dumpDataOnly($this->dataOnly) |
|
| 276 | + ->dumpNoPrivileges($this->noPrivileges) |
|
| 277 | + ->dumpNoOwner($this->noOwner) |
|
| 278 | + ->dumpFormat($this->format) |
|
| 279 | + ->dumpTo($target->getPathnamePlain()); |
|
| 280 | 280 | } |
| 281 | 281 | return $this->executable; |
| 282 | 282 | } |
@@ -71,10 +71,10 @@ |
||
| 71 | 71 | $this->executable = new Tar($this->pathToCommand); |
| 72 | 72 | $this->executable->archiveDirectory($this->path); |
| 73 | 73 | $this->executable->archiveTo($this->getArchiveFile($target)) |
| 74 | - ->useCompression( |
|
| 75 | - $target->shouldBeCompressed() ? $target->getCompressor()->getCommand() : '' |
|
| 76 | - ) |
|
| 77 | - ->removeSourceDirectory(true); |
|
| 74 | + ->useCompression( |
|
| 75 | + $target->shouldBeCompressed() ? $target->getCompressor()->getCommand() : '' |
|
| 76 | + ) |
|
| 77 | + ->removeSourceDirectory(true); |
|
| 78 | 78 | } |
| 79 | 79 | return $this->executable; |
| 80 | 80 | } |
@@ -220,19 +220,19 @@ |
||
| 220 | 220 | if (null == $this->executable) { |
| 221 | 221 | $this->executable = new Executable\Mysqldump($this->pathToMysqldump); |
| 222 | 222 | $this->executable->credentials($this->user, $this->password) |
| 223 | - ->useHost($this->host) |
|
| 224 | - ->useQuickMode($this->quick) |
|
| 225 | - ->lockTables($this->lockTables) |
|
| 226 | - ->dumpBlobsHexadecimal($this->hexBlob) |
|
| 227 | - ->useCompression($this->compress) |
|
| 228 | - ->useExtendedInsert($this->extendedInsert) |
|
| 229 | - ->dumpTables($this->tables) |
|
| 230 | - ->dumpDatabases($this->databases) |
|
| 231 | - ->ignoreTables($this->ignoreTables) |
|
| 232 | - ->produceFilePerTable($this->filePerTable) |
|
| 233 | - ->dumpNoData($this->noData) |
|
| 234 | - ->dumpStructureOnly($this->structureOnly) |
|
| 235 | - ->dumpTo($this->getDumpTarget($target)); |
|
| 223 | + ->useHost($this->host) |
|
| 224 | + ->useQuickMode($this->quick) |
|
| 225 | + ->lockTables($this->lockTables) |
|
| 226 | + ->dumpBlobsHexadecimal($this->hexBlob) |
|
| 227 | + ->useCompression($this->compress) |
|
| 228 | + ->useExtendedInsert($this->extendedInsert) |
|
| 229 | + ->dumpTables($this->tables) |
|
| 230 | + ->dumpDatabases($this->databases) |
|
| 231 | + ->ignoreTables($this->ignoreTables) |
|
| 232 | + ->produceFilePerTable($this->filePerTable) |
|
| 233 | + ->dumpNoData($this->noData) |
|
| 234 | + ->dumpStructureOnly($this->structureOnly) |
|
| 235 | + ->dumpTo($this->getDumpTarget($target)); |
|
| 236 | 236 | } |
| 237 | 237 | return $this->executable; |
| 238 | 238 | } |
@@ -141,10 +141,10 @@ |
||
| 141 | 141 | |
| 142 | 142 | $this->executable = new Executable\Tar($this->pathToTar); |
| 143 | 143 | $this->executable->archiveDirectory($this->path) |
| 144 | - ->useCompression($this->compression) |
|
| 145 | - ->ignoreFailedRead($this->ignoreFailedRead) |
|
| 146 | - ->removeSourceDirectory($this->removeSourceDir) |
|
| 147 | - ->archiveTo($this->pathToArchive); |
|
| 144 | + ->useCompression($this->compression) |
|
| 145 | + ->ignoreFailedRead($this->ignoreFailedRead) |
|
| 146 | + ->removeSourceDirectory($this->removeSourceDir) |
|
| 147 | + ->archiveTo($this->pathToArchive); |
|
| 148 | 148 | } |
| 149 | 149 | return $this->executable; |
| 150 | 150 | } |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | { |
| 113 | 113 | // remove leading slash |
| 114 | 114 | return (substr($this->path, 0, 1) == '/' ? substr($this->path, 1) : $this->path) |
| 115 | - . (substr($this->path, -1, 1) == '/' ? '' : '/') |
|
| 116 | - . $target->getFilename(); |
|
| 115 | + . (substr($this->path, -1, 1) == '/' ? '' : '/') |
|
| 116 | + . $target->getFilename(); |
|
| 117 | 117 | } |
| 118 | 118 | } |