-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use multithread compressor #87
Comments
<backup>
<source type="tar">
<option name="path" value="/some/dir"/>
</source>
<target dirname="/backup" filename="dir-%Y%m%d-%H%i.tar" compress="bzip2"/>
<backup> This will create a Hope that helps |
I mean lbzip2 not standard bzip2. lbzip2 can use multithread for compressing as mentioned at http://www.cnx-software.com/2016/12/16/compress-decompress-files-faster-with-lbzip2-multi-threaded-version-of-bzip2/ |
Currently there is now way to do so :/ |
It will be a cool feature! |
Definitely ;) |
I just backported the new feature to phpbu 4.0.8 <phpbu>
<backups>
<backup name="foo">
<source type="tar">
<option name="path" value="/dir/to/compress"/>
<option name="compressProgram" value="lbzip2"/>
</source>
<target dirname="backup/src" filename="backup-%Y%m%d-%H%i.tar" compress="bzip2"/>
</backup>
</backups>
</phpbu> This should result in a tar command like this tar --use-compress-program='lbzip2' -cf backup/src/backup20170329-1500.tar.bz2 -C '/dir/to' 'compress' Hope that helps Cheers Sebastian |
How I can use lbzip2 as directory compressor?
Like this:
tar cf linux2.tar.bz2 linux --use-compress-program=lbzip2
The text was updated successfully, but these errors were encountered: