[comp.unix.wizards] taring filenames>100 char?

chris@ec.uwa.oz.au (Christoph Uloth - operator) (04/09/91)

how can I tar a directory structure where the total pathname/filename
is larger than 100 characters

thanks. chris

--
Christoph Uloth      Division of Commerce Economics Law & Education
Systems Networks Officer            University of Western Australia
Phone: +61-9-380 2198 || +61-9-364 7181         Fax: +61-9-380 XXXX
email: chris@comec.uwa.oz.au                                    :-)

weimer@garden.ssd.kodak.com (Gary Weimer (253-7796)) (04/10/91)

In article <1991Apr9.075208.25211@uniwa.uwa.oz>, chris@ec.uwa.oz.au
(Christoph Uloth - operator) writes:
|> how can I tar a directory structure where the total pathname/filename
|> is larger than 100 characters

Two things that come to mind right away. Let's say you want to tar
~/<very_long_path>/*.dat

1) % cd ~/<very_long_path>
   % tar c *.dat
or
   % cd ~/<very_long_path>/..
   % tar c ./*.dat

2) create a link to shorten the path.
   % cd ~
   % ln -s <very_long_path> short-cut
   % tar c short-cut/*.dat

The -C option might also be what you are looking for. Since you don't
give any details, it's hard to say what might be best for your case.

weimer@ssd.kodak.com ( Gary Weimer )