F
F
fokin_nikolay19892019-09-25 21:09:04
linux
fokin_nikolay1989, 2019-09-25 21:09:04

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

3 answer(s)
A
Alexey, 2019-09-25
@le2xx

If the performance of archiving rests on the processor, then I recommend the pigz archiver , it can use all the processor cores.

P
pfg21, 2019-09-25
@pfg21

7zip rar and compression and multithreading.

R
Roman Mirilaczvili, 2019-10-11
@2ord

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 question

Ask a Question

731 491 924 answers to any question