backup script fatal error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

backup script fatal error

Cihan
Hi Erman

Thanks for your help in advance :)

I have backup script which is taring my app folder in backup script. It started to give an error message like below ;

Fatal error caused by line 71 of /backup_offline.sh

at line 71 it is ;

tar -czvpf ${BKUPDIR}/$( basename $FOLDERNAME )-${TAG}-${BUTDSTAMP}.tar.gz ${FOLDERNAME} >> $LOG || exiterror

then I tried to use tar command manually for the same backup directory with command

" tar -czvpf /root/appsdeneme.tar.gz /u1/oracle/PROD/ >> /root/bckcg.log "


and it stopped for one file and error message is now  ;

tar:/u1/oracle/PROD/inst/apps/PROD_ofmapp/logs/ora/10.1.3/j2ee/oacore/oacore_default_group_1/server.log: file is changed as we read it


Tar Command Version : tar (GNU tar) 1.15.1


Reply | Threaded
Open this post in threaded view
|

Re: backup script fatal error

ErmanArslansOracleBlog
Administrator
Hi Cihan,

This error is normal, as logs into the log files are written by the applications or process when they are online.
In this case, what happens is;
when you arcive the server.log using tar , some process seems write into the server.log file..
log files are not so important.
You can simple ignore those by specifying "--ignore-failed-read" option in your tar command.
This will make tar command to ignore and continue the files which are changed while your tar command is reading it.
Reply | Threaded
Open this post in threaded view
|

Re: backup script fatal error

ErmanArslansOracleBlog
Administrator
Alternatively, you can use  tar --exclude=PATTERN to exclude those log files
This is a non-fatal error by the way. Only your backup script says that it s fatal.
Normally, tar should continue and finish its work in spite of this error.