[ale] tar question

Yu, Jerry zyu at Ptek.com
Fri Jul 21 17:13:35 EDT 2000


if you just want everything in that dir,

you can simply do:
cd /targetDir && tar cvf /somewhereElse/targetDir.tar . \
 --exclude-from=exc.list   && cd -

exc.list should contains things like in format like "./trash" instead of
"trash".



On Fri, 21 Jul 2000, Robert L. Harris wrote:

#
#
#tar cvzf tar.tgz dir/.??*
#
#Thus spake David S. Jackson (dsj at sylvester.dsj.net):
#
#> I'm experimenting with tar, which I should know much better than
#> I do.  :-)
#> 
#> What's the best way to include ".filenames" without including
#> "..", which will include the everything in the parent directory?
#> 
#> So far I've been going with:
#> 
#> tar cvfz tarball.tar.gz dirname/.* --exclude '..'
#> 
#> I want to include subdirectories and their dotfiles.  Is there a
#> better way to do it?
#> 
#> TIA!
#> 
#> --
#> David S. Jackson                        dsj at dsj.net
#> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#> They are called computers simply because computation
#> is the only significant job that has so far been
#> given to them.
#> --
#> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
#
#
#
#:wq!
#---------------------------------------------------------------------------
#Robert L. Harris                |  Micros~1 :  
#Senior System Engineer          |    For when quality, reliability 
#  at RnD Consulting             |      and security just aren't
#                                \_       that important!
#DISCLAIMER:
#      These are MY OPINIONS ALONE.  I speak for no-one else.
#FYI:
# perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
#
#--
#To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
#

Jerry Yu				mailto: z.yu at ptek.com
Systems Engineer			https://punch/~zyu
PTEK Holdings, Inc.			+1-404-262-8544 (O)

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list