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?
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?