LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tar all but these... (https://www.linuxquestions.org/questions/linux-newbie-8/tar-all-but-these-34102/)

murshed 12-03-2002 08:46 AM

hi ..
well as i mentioned .. i tried everything mentioned in this thread with no luch ..
i just logged on my server and tried what you suggested .. it just tars everything

0x0001 12-03-2002 09:07 AM

Are you using linux or some other system?
Tar varies widely concerning different systems, on solaris for example you have to do this:

tar cvfX backup.tar ex.txt httpdocs/

where ex.txt is a textfile which contains
httpdocs/temp/

If you use linux, i have no idea why it doesn't work, i can only suggest reading the man page and an trial and error approach.

murshed 12-03-2002 12:36 PM

well am using redhat 7.2
did you try this way on a linux box did it work with you?

0x0001 12-05-2002 05:06 AM

Yes. GNUs tar seems to work this way too. But given that --exclude does not work for you, you probably don't have the gnu tar.

Try it anyways maybe it works.


All times are GMT -5. The time now is 07:39 PM.