Article 6P4QD exclude directory when extracting from tar

exclude directory when extracting from tar

by
mfoley
from LinuxQuestions.org on (#6P4QD)
I want to exclude a directory when extracting from tar. I've tried:
Code:tar -C /booga --exclude SQLserverTrans -xvf 202407101755.tgzbut that doesn't work. It restores the SQLserverTrans/ files. Suggestions I've found while searching don't work.

How can I do this?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments