We are working on a system (on Linux) that has very limited transfer resources. The maximum file size that can be sent as a single file is determined, and we would like to send the minimum number of files. Because of this, all sent files are packed and compressed in the GZip format (.tar.gz).
There are many small files of various types (binary, text, images ...) that need to be packed in the most efficient way to send the maximum amount of data each time.
The problem is this: is there a way to estimate the size of the tar.gz file without running the tar utility? (Thus, the best combination of files can be calculated)
source
share