smacattack
Technical User
I have created a script which runs a compress in the background and then runs a tar of oracle datafiles.
This works fine from command line but when running via crontab has memory problems and does not seem to compress.
Is there any easy way to run job through crontab which will achieve this senario.
If i compress after the tar file has been created i run out of swap, I need to run compression at same time as tar !
Any ideas.
present script like
TARPIPE=/tmp/tarfile_${ORACLE_SID}
mknod ${TARPIPE) p
.
.
.
cat $TARPIPE | compress -c ${backup_dir}/${ORACLE_SID.tar.Z &
tar cvf $TARPIPE ${backup_list} | tee ${backup_dir}/${ORACLE_SID}.log
.
.
.
.
This works fine from command line but when running via crontab has memory problems and does not seem to compress.
Is there any easy way to run job through crontab which will achieve this senario.
If i compress after the tar file has been created i run out of swap, I need to run compression at same time as tar !
Any ideas.
present script like
TARPIPE=/tmp/tarfile_${ORACLE_SID}
mknod ${TARPIPE) p
.
.
.
cat $TARPIPE | compress -c ${backup_dir}/${ORACLE_SID.tar.Z &
tar cvf $TARPIPE ${backup_list} | tee ${backup_dir}/${ORACLE_SID}.log
.
.
.
.