Comments (9)
can confirm that without -M option bzip2 is used. With -M option pbzip2 is used.
#16
from system-tar-and-restore.
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.
I did a quick patch to enable this feature for p/bzip2.
from system-tar-and-restore.
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.
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.
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.
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.
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.
#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)
- Can "multi-core compression" use a specified number of cores? HOT 12
- Can system-tar-and-restore support compressing other partitions explicitly specified? HOT 16
- Tips & Tricks : How to extent "Additional Options" and "Exclude" permanently? HOT 6
- Should I boot from the liveCD? HOT 6
- home directory is not backed up completely HOT 2
- Error: Running and target system architecture mismatch or invalid archive HOT 2
- Somewhat difficult now to restore properly??? HOT 10
- Is target dir auto excluded ? HOT 2
- An error occurred. HOT 9
- Error while trying to backup using livecd HOT 2
- Could You describe --destination option for backup HOT 2
- [ERROR] /dev/sda1 is already mounted as /boot/efi, refusing to use it HOT 3
- Best script ever HOT 2
- Function defined twice and missing options HOT 1
- Ubuntu 16.04: GUI wrapper can't find functions HOT 7
- system-tar-and-restore does not work with nvme SSD drive HOT 2
- Enhancement request: switch to wipe files from partition on restore HOT 10
- What is the difference between RestoreMode and TransferMode? HOT 6
- Any thought to implement a .desktop file for menu entry? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from system-tar-and-restore.