Answer the question
In order to leave comments, you need to log in
How to quickly pack small files?
Good evening.
Help to deal with the situation:
There is a directory in which there are a huge number of small files.
How can I pack these files as quickly as possible?
With the expectation that the files accumulated over the year are archived in tar.gz in 3 days
Answer the question
In order to leave comments, you need to log in
If the performance of archiving rests on the processor, then I recommend the pigz archiver , it can use all the processor cores.
If speed is important, then you need to select the fast compression mode of a specific algorithm, or initially select fast compression algorithms, such as LZ4, LZOP, ZSTD. In the latter, the compression ratio is high relative to algorithms of this class.
And in what container to pack, TAR (preferably), ZIP (if without compression) - is not so important.
That is, I would suggest TAR + LZ4 if you need the highest write speed to the drive and a combination of TAR + ZSTD if you want to achieve a compression ratio close to GZIP.
Alternatively, deduplication programs such as bup, zpaq, BackupPC can be used instead of classic archivers. They will allow you to save only changes in files, without duplicating information with each impression of information.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question