zip -vr target_archive.zip folder_to_zip -x "path/to/exclude/*" "*.log"
Explanation:
-v: Enables verbose mode, showing details about added files.-r: Recursively compresses the entire folder, including subfolders.-x "path/to/exclude/*” “*.log”: Excludes all files within the path directory and exclude specific file types.

Leave a comment