Created
April 4, 2025 19:49
-
-
Save skarllot/5ebd4e062d48732f04e1cfb8eed9e40b to your computer and use it in GitHub Desktop.
Create archive ignoring folders using 7-Zip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
& 'C:\Program Files\7-Zip\7z.exe' a dest.zip . -r "-x!.git" "-x!.terraform" | |
& 'C:\Program Files\7-Zip\7z.exe' a dest.zip MyFolder\ -r -x!bin -x!obj |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment