Global Feed Post Login
Replying to Avatar nixCraft 🐧

Want to compress the whole dir with good compression? Try xz compression:

tar -cf - dir1 | xz -9ze -T0 >archive.tar.xz

The latest tar version under #FreeBSD/#macOS/#Linux support the following syntax:

tar -cJf archive.tar.xz dir1

See https://www.cyberciti.biz/faq/compress-the-whole-directory-using-xz-and-tar/ more info.

Avatar
Ngoding 2y ago

What about zstd?

Reply to this note

Please Login to reply.

Discussion

3b
kudanil 2y ago

tar -I zstd -cvpf yourfolderarchived.tar.zst yourfolder

Thread collapsed