Re: Exporting to Tape on HP/UX
Date: 22 Jul 1993 11:21:32 +0200
Message-ID: <22lm6s$pd6_at_mail.fwi.uva.nl>
andy_at_vistachrome.com (Andrew Finkenstadt) writes:
>oliver_at_io.nosc.mil (George Oliver) writes:
>>Does anyone know how to export directly to tape in Unix (specifically hp/ux).
>>There seems to be no intuitive way of doing this (of course this is ORACLE).
>>I remember way back when, I could do this in VMS. Any help would be greatly
>>appreciated.
>>Thanks,
>>George Oliver
>>NRaD, Code 423
>>email: oliver_at_nosc.mil
>This, UNTESTED, script should work. The basic trick is to create a
>Unix pipe file named "expdat.dmp" in the directory from which you are
>doing the export.
>Here is how it will work, in pictures:
> exp system/manager ------------------> dd (data dump) to tape
>So, a script which looks alot like what I use to do compressed backups
>via export:
> #! /bin/sh
> rm -f expdat.dmp || echo "Could not remove pipe. :(" ; exit 1
> mknod expdat.dmp || echo "Could not make pipe. :(" ; exit 2
> # now make the copy process go . N.B. the & puts it in the background!
> dd if=expdat.dmp of=/dev/your/tape/drive bs=yourblocksize &
> # now start the export
> exp system/manager file=expdat full=y constraints=y compress=y buffer=1024000
>The construct "command || echo ; exit #" says to execute the command,
>and if it FAILS, execute the echo and exit commands.
Jan.
-- Jan Wortelboer, University of Amsterdam Computer Science Department Email: janw_at_fwi.uva.nl Unix Kruislaan 403 Kamer F003 Phone: +31 20 525 7501 systems manager 1098 SJ AMSTERDAM Fax : +31 20 525 7490Received on Thu Jul 22 1993 - 11:21:32 CEST