Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
You can now choose 'xz' for your target compression. For this to work you must have the 'xz' binary installed and available in your path. To install the xz compressor you can do something like: Debian: apt-get install xz-utils OSX: brew install xz
- Loading branch information
1 parent
3b41f9e
commit da08c3c
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
namespace phpbu\App\Backup\Target\Compression; | ||
|
||
/** | ||
* Xz | ||
* | ||
* @package phpbu | ||
* @subpackage Backup | ||
* @author Sebastian Feldmann <sebastian@phpbu.de> | ||
* @copyright Sebastian Feldmann <sebastian@phpbu.de> | ||
* @license https://opensource.org/licenses/MIT The MIT License (MIT) | ||
* @link http://phpbu.de/ | ||
* @since Class available since Release 5.0.0 | ||
*/ | ||
class Xz extends Abstraction | ||
{ | ||
/** | ||
* Command name | ||
* | ||
* @var string | ||
*/ | ||
protected $cmd = 'xz'; | ||
|
||
/** | ||
* Suffix for compressed files | ||
* | ||
* @var string | ||
*/ | ||
protected $suffix = 'xz'; | ||
|
||
/** | ||
* MIME type for compressed files | ||
* | ||
* @var string | ||
*/ | ||
protected $mimeType = 'application/x-xz'; | ||
|
||
/** | ||
* Can this compression compress piped output | ||
* | ||
* @var bool | ||
*/ | ||
protected $pipeable = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters