In the ancient times, when I was coding mostly in Pascal – size did matter. People were using RAR to shave couple kilobytes from archives, and having 2mb executable was better then having 4mb executable file. In that beautiful time we used UPX – I wasn’t aware that this project is still alive, and works nicely with binaries create bo go lang. Ultimate Packer for eXecutables Copyright (C) 1996 - 2017 UPX 3.
We have couple options: pigz and pbzip2 . tar -c --use-compress-program=pigz -f my_archive.tar.gz /home/archive The other trick useful trick is that you can exclude some directories or files tar -zcvf my_archive.tar.gz --exclude='cache' --exclude='.git' /home/archive