tar & placing files in a new directory

From: Colin Brooks <cbrooks_at_nature.berkeley.edu>
Date: Wed, 22 Jan 1997 09:35:11 -0800

Hello managers. Having summarized the backup solution people helped me
with, I thought I would ask my next "newbie" question...

I have an 8mm tape that someone wrote a lot of data to with the following
command:
"tar cvf /dev/rmt/ohmb /mnt/giss/gisdata/lotlines/*lot.dwg"

Using the "tar -tv" command, I can see that several hundred files were
written to the tape.

I would like to restore these files to my Alphastation, but not to the
/mnt/giss/gisdata/lotlines directory. Instead, I would like to "untar"
these files to the /ibm/pe/data directory (it's okay with me if the
/mnt/giss/gisdata/lotlines pathname gets appended to /ibm/pe/data). When I
issue the "tar -xv" command from the /ibm/pe/data directory, tar tries to
restore the files to /mnt/giss/gisdata/lotlines directory. This doesn't
work as I'm logged on as "cbrooks", and I can't restore the files to that
location (the location doesn't exist anyway). If I try restoring the files
as "root", tar sticks the files in / (root directory), and / quickly fills up.

So... can I get tar to place these files in another directory? I tried
checking the man page on tar, but I couldn't figure it out.

Thanks,
Colin Brooks


****************************************************
Colin Brooks
GIS Program Analyst
Integrated Hardwood Range Management Program
Hopland Research & Extension Center
4070 University Rd.
Hopland, CA 95449
Primary #'s - TEL:(707)744-1270 FAX:(707)744-1040
Work E-mail: cbrooks_at_nature.berkeley.edu
http://www.pacific.net/~cbrooks/gis1.htm
I'm also found at:
ESPM, University of California - Berkeley
160 Mulford Hall
Berkeley, CA 94720-3114
Secondary #'s - TEL: 510-643-1136 FAX: 510-643-5438
****************************************************
Received on Wed Jan 22 1997 - 20:21:51 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT