Shell command to tar directory excluding certain files/folders

You can use –exclude=PATTERN option with tar command to tar directory excluding certain files and folders. Use multiple –exclude option or PATTERN to exclude multiple files and folders with tar command.

Leave a Reply