@@ -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 | } |
@@ -302,7 +302,7 @@ |
||
| 302 | 302 | public function getFilenameSuffix($plain = false) |
| 303 | 303 | { |
| 304 | 304 | return (count($this->fileSuffixes) ? '.' . implode('.', $this->fileSuffixes) : '') |
| 305 | - . ($plain ? '' : $this->getCompressorSuffix() . $this->getCrypterSuffix()); |
|
| 305 | + . ($plain ? '' : $this->getCompressorSuffix() . $this->getCrypterSuffix()); |
|
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | /** |
@@ -97,12 +97,12 @@ |
||
| 97 | 97 | ); |
| 98 | 98 | } else { |
| 99 | 99 | $this->executable->fromPath($this->getRsyncLocation($target)) |
| 100 | - ->toHost($this->host) |
|
| 101 | - ->toPath($this->path) |
|
| 102 | - ->toUser($this->user) |
|
| 103 | - ->compressed(!$target->shouldBeCompressed()) |
|
| 104 | - ->removeDeleted($this->delete) |
|
| 105 | - ->exclude($this->excludes); |
|
| 100 | + ->toHost($this->host) |
|
| 101 | + ->toPath($this->path) |
|
| 102 | + ->toUser($this->user) |
|
| 103 | + ->compressed(!$target->shouldBeCompressed()) |
|
| 104 | + ->removeDeleted($this->delete) |
|
| 105 | + ->exclude($this->excludes); |
|
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | return $this->executable; |
@@ -76,11 +76,11 @@ |
||
| 76 | 76 | ); |
| 77 | 77 | } else { |
| 78 | 78 | $this->executable->fromHost($this->host) |
| 79 | - ->fromUser($this->user) |
|
| 80 | - ->fromPath($this->path) |
|
| 81 | - ->toPath($this->getRsyncLocation($target)) |
|
| 82 | - ->removeDeleted($this->delete) |
|
| 83 | - ->exclude($this->excludes); |
|
| 79 | + ->fromUser($this->user) |
|
| 80 | + ->fromPath($this->path) |
|
| 81 | + ->toPath($this->getRsyncLocation($target)) |
|
| 82 | + ->removeDeleted($this->delete) |
|
| 83 | + ->exclude($this->excludes); |
|
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | return $this->executable; |