To compress multiple files (e.g., file1.txt, file2.txt, and file3.txt) and save the compressed output to separate files:
lz4 file1.txt file2.txt file3.txt
This will generate file1.txt.lz4, file2.txt.lz4, and file3.txt.lz4 files. lz4 v183 win64
Some common options and flags used with LZ4 v1.9.3: To compress multiple files (e
LZ4 has moved to v1.9.x and v1.10.x, adding features like --favor-decSpeed and better macOS/Linux optimizations. However, v1.8.3 for Win64 remains popular in legacy enterprise environments and air-gapped systems because: This will generate file1
@echo off REM Backup a directory using LZ4 v1.8.3 win64 set SOURCE=C:\Logs set BACKUP=logs_backup_%date:~10,4%%date:~4,2%%date:~7,2%.lz4
"C:\tools\lz4.exe" -9 -c %SOURCE%*.log > %BACKUP% echo Backup created: %BACKUP%
LZ4 is a lossless compression algorithm that belongs to the LZ77 family (named after Abraham Lempel and Jacob Ziv, 1977). It was created by Yann Collet in 2011, targeting scenarios where compression speed must rival memcpy().