Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: UNIX OT: exclude files in tar

Re: UNIX OT: exclude files in tar

From: Michael Boligan <michael.boligan.b_at_bayer.com>
Date: Tue, 25 Nov 2003 04:44:33 -0800
Message-ID: <F001.005D7C40.20031125044433@fatcity.com>

It doesn't use the exclude, but it would do what you want:

cd /home/user01
tar -cvf /dev/rmt0 mark01 mark02

where /dev/rmt0 is your tape device, or you can substitute a disk destination.

HTH,
Mike

                                                                                                                                     
                      Ross Collado                                                                                                   
                      <Ross.Collado_at_tec        To:       Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>                 
                      hpac.com>                cc:                                                                                   
                      Sent by:                 Subject:  UNIX OT: exclude files in tar                                               
                      ml-errors_at_fatcity                                                                                              
                      .com                                                                                                           
                                                                                                                                     
                                                                                                                                     
                      11/25/2003 12:24                                                                                               
                      AM                                                                                                             
                      Please respond to                                                                                              
                      ORACLE-L                                                                                                       
                                                                                                                                     
                                                                                                                                     




Hello,

On Solaris 8

I can't seem to get the tar command right. I wanted to tar a directory but EXCLUDE one of the subdirectory in it.
Example:
/home/user01
/home/user01/mark01
/home/user01/mark01/ask.txt
/home/user01/mark01/ghost.txt
/home/user01/mark02
/home/user01/mark02/ask.txt
/home/user01/mark02/ghost.txt
/home/user01/mark03
/home/user01/mark03/ask.txt
/home/user01/mark03/ghost.txt

I wanted to tar everything except /home/user01/mark03/* man pages on tar says there is an option to exclude files but I just can't get it to work for me.

Can someone show me how to do this right?

Thanks,
Ross

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Ross Collado
  INET: Ross.Collado_at_techpac.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Michael Boligan
  INET: michael.boligan.b_at_bayer.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Nov 25 2003 - 06:44:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US