1827620 Members
3199 Online
109966 Solutions
New Discussion

tar on script

 
Fadia Almarei
Super Advisor

tar on script

i have a script for backup , in the script
first i do the backup on the tape
second i call a script at which i do the backup on the disk and then gzip this file . in this backup i have many problems .
1-on the mail i see that , the backup on the tape goes will
2- when start backup on the disk first it goes will and then (the folder is 60MB) it gives me error "Can't open /dev/tty to prompt for more media."
3-then it continue to do backup for the second folder and then give the same message(backup on the disk)
4-then when i do the gzip command for the file it gives me the error " not found" .
kindly give me description for what happened with me .
regards,
Fadia
fadia.marei
7 REPLIES 7
Jeff_Traigle
Honored Contributor

Re: tar on script

How much free space is on the file system you're creating the tarball on (output of "bdf")? I've seen this happen when free space is used before the archive is completed.
--
Jeff Traigle
David Child_1
Honored Contributor

Re: tar on script

It sounds like there isn't enough space in the target directory to create the tarball. You could verify this by temporarily changing the location of the tar file to a larger file system and see if that works.
harry d brown jr
Honored Contributor

Re: tar on script

Item 2 - your backup ran out of space.
Item 3 - see item 2
Item 4 - see item 2 (You need 1.5 times the free space of the original file)

Get GNU's gtar - it has a built in ability to do gzipping on the fly.

http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.14/

live free or die
harry
Live Free or Die
Fadia Almarei
Super Advisor

Re: tar on script

i think that the size is enough , folder at which i will tar is 36 GB , and the folder to which i will tar is 30 MB
fadia.marei
harry d brown jr
Honored Contributor

Re: tar on script

post your script

as something is wrong with it.

live free or die
harry
Live Free or Die
Fadia Almarei
Super Advisor

Re: tar on script

my sript is as the following
"# Set up the shell variables:
EDITOR=vi
export EDITOR
PATH=$PATH:/usr/local/bin:.
PATH="$ORACLE_HOME/bin:/usr/ccs/bin:/usr/sbin:$PATH"
. /u02/oracle/oa11idb/9.2.0/OA11i_Fin01.env
sqlplus /nolog @/home/oracle8i/SCRIPTS/shutDB
echo "DATABASE IS SHUTDOWN AT:"
date
echo "BACKUP FOR DATABASE FILES"
#tar cvp /u02/oracle
tar cvp /u01/oracle/oa11idata /u03/oracle/oa11idata
echo "START BACKUP FROM DISK"
~oracle8i/SCRIPTS/Disk-Backup-FRI
echo "FINISHED BACKUP"
date
sqlplus /nolog @/home/oracle8i/SCRIPTS/strtDB
echo "DATABASE STARTED AT:"
DATE"

*and then the important o this is the script i call which is "~oracle8i/SCRIPTS/Disk-Backup-FRI"
and on this script i do the following
"# Set up the shell variables:
# EDITOR=vi
# export EDITOR
PATH="$ORACLE_HOME/bin:/usr/ccs/bin:/usr/sbin:$PATH"
echo "BACKUP FOR DATABASE FILES on DISK"
tar cvf /u04/FRI-u03.tar /u03/oracle/oa11idata
tar cvf /u04/FRI-u01.tar /u01/oracle/oa11idata
/usr/contrib/bin/gzip /u04/FRI-u03.tar
/usr/contrib/bin/gzip /u04/FRI-u01.tar
echo "COPY THE DATA"
which gzip
echo "FINISHED BACKUP on DISk"
date
fadia.marei
Fadia Almarei
Super Advisor

Re: tar on script

i want to ask a nother question

i know that the tar command restricted to make backup for the file for 2GB , but my question is this restiction for making the backup on the disk or on the tape or whatever the media this restriction work , i want a clear answer please ,
fadia.marei