Giter Club home page Giter Club logo

Comments (9)

0rinsb3lt avatar 0rinsb3lt commented on May 24, 2024 1

can confirm that without -M option bzip2 is used. With -M option pbzip2 is used.
#16

from system-tar-and-restore.

tritonas00 avatar tritonas00 commented on May 24, 2024

possibly just reuse the -M --multi-core option for defining decompression (Restore mode).

Yes, it's possible, the code is already there for compression https://github.com/tritonas00/system-tar-and-restore/blob/master/star.sh#L529

i will look into it when i have my laptop back

from system-tar-and-restore.

0rinsb3lt avatar 0rinsb3lt commented on May 24, 2024

I did a quick patch to enable this feature for p/bzip2.

diff.txt

from system-tar-and-restore.

tritonas00 avatar tritonas00 commented on May 24, 2024

no need to add extra statements in read_archive

replace tf with "$BRreadopts" here https://github.com/tritonas00/system-tar-and-restore/blob/master/star.sh#L1859, and then re arrange BRreadopts here https://github.com/tritonas00/system-tar-and-restore/blob/master/star.sh#L760-L778

also i thing you need -d https://linux.die.net/man/1/pbzip2

from system-tar-and-restore.

0rinsb3lt avatar 0rinsb3lt commented on May 24, 2024

I took your suggestion with the "$BRreadopts" and here is what I came up with
diff.txt

as for the -d from what I read is that when passing a program via -I the program itself simply has to support the -d option

https://linux.die.net/man/1/tar

from system-tar-and-restore.

tritonas00 avatar tritonas00 commented on May 24, 2024

yes like that but the statement must be before https://github.com/tritonas00/system-tar-and-restore/blob/master/star.sh#L764 not after

when i have my laptop i will extend it to all compressors and add threads also

from system-tar-and-restore.

0rinsb3lt avatar 0rinsb3lt commented on May 24, 2024

The diff shows that After 763 in the first file (original file) it's adding the lines from the second file (one I modified). That would put them above line 764.

Other than that I think it paves the way for other compressors. ( I have another modification that adds pixz support)

from system-tar-and-restore.

tritonas00 avatar tritonas00 commented on May 24, 2024

The diff shows that After 763 in the first file (original file) it's adding the lines from the second file (one I modified). That would put them above line 764.

you are right, i didn't watch carefully

Other than that I think it paves the way for other compressors. ( I have another modification that adds pixz support)

exactly, but please check if non parallel way still works

fork, add your code and create a pull request

thank you for your contribution

from system-tar-and-restore.

tritonas00 avatar tritonas00 commented on May 24, 2024

#16 merged, pbzip2 decompression is now done and you can use -z as well to define max threads

any idea of parallel decompressors for xz and gzip also?

from system-tar-and-restore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.