Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!hplabs!hpda!hpsemc!bd
From: bd@hpsemc.HP.COM (bob desinger)
Newsgroups: comp.unix.wizards
Subject: Re: HELP problem with tar
Message-ID: <570019@hpsemc.HP.COM>
Date: 16 Aug 88 23:16:27 GMT
References: <544@kaon.uchicago.edu>
Organization: HP Technology Access Center, Cupertino, CA
Lines: 18

Admin (root@kaon.uchicago.edu) writes, in a truncated posting:
> paths instead of relative paths using tar. i.e. I save a directory
> /u/harris/trash. How can I restore this directory and subtrees to let
> us say, /u4/harris/tmp/trash.

(If my e-mail and shar of readtape doesn't reach you, get readtape
from my earlier article and then read this.)

I hope you're running System V.

1.  cd /u4/harris/tmp
2.  (Unpack the readtape shar into the current directory.)
3.  ./readtape					# get a usage summary
4.  su root -c "cd `pwd` && ./readtape"		# run it; creates ./u/harris/
5.  mv u/harris/trash trash			# you may have to use mvdir
6.  rm -rf u					# dispose of leftovers

-- bd