HELP problem with tar

bob desinger bd at hpsemc.HP.COM
Wed Aug 17 09:16:27 AEST 1988


Admin (root at 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



More information about the Comp.unix.wizards mailing list