![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| exclude a line | big123456 | Shell Programming and Scripting | 3 | 04-24-2008 09:31 AM |
| 'find' and 'tar' combination | kharen11 | Shell Programming and Scripting | 2 | 02-06-2008 04:17 AM |
| du (exclude files) | the_learner | UNIX for Advanced & Expert Users | 1 | 07-17-2007 11:06 AM |
| Exclude & Zip | dreams5617 | Shell Programming and Scripting | 1 | 02-11-2007 04:01 PM |
| tar: how to exclude subdirectories? | kymberm | Filesystems, Disks and Memory | 7 | 10-15-2002 12:53 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Getting 'tar' to exclude
I want 'tar' to exclude certain dir's.
tar cvf ............. ............ does the whole lot, but I want to exclude the 'log' dirs. |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
does this help? tar cvf filename.tar Create a tape (tar) archive Description: Creates a tape (tar) archive. * (c) Create * (v) Verbose mode * (f) File * (-I include_file) - List of files to archive Example: tar cvf htmlFiles.tar -I htmlFiles Submitter: Robert Weeks (Source Sun BIGAdmin) |
|
|||
|
Thank you.
I back up to a hardrive which I've mounted to ./backup using 'tar cvf' and that works fine and very fast. It's just that I run a system with a lot of extensive logfiles, which I do not need to back up. They are in the middle of things, so I want to exclude these. It says that tar accepts exclusions, but I cannot find the right way of putting down the command. It's Solaris 8 |