Subscribe to How-To Geek

Exclude Directories from Tar

From HowToGeek

Jump to: navigation, search

When you are creating a tar archive, you often want to exclude directories from the file. This can be done fairly simply with the exclude parameter.

Tip: you can use the --exclude command more than once to exclude another directory as well

tar -cf Filename.tar --exclude "/full/path/to/exclude/" /path/to/tar

 

Our Friends
Getting Started
About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
Cmd.exe
Dpupdchk.exe Adobe_Updater.exe

All content on the How-To Geek Wiki is licensed under a Creative Commons License