Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a folder with 85 subfolders. I want to make a customized .tar file, meaning that I want to ignore some folders.

How can I do that?

share|improve this question
    
thanks dear slhck! –  Sam Feb 7 '12 at 11:36
add comment

1 Answer 1

up vote 1 down vote accepted

A couple of ways, check these options in the doc.:

--exclude=PATTERN'
     When performing operations, `tar' will skip files that match
     PATTERN.  *Note exclude::.
`--exclude-from=FILE'
`-X FILE'
     Similar to `--exclude', except `tar' will use the list of patterns
     in the file FILE.  *Note exclude::.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.