I am trying a cron on root user to backup to tape using TAR command
here is the cron entry
11 08 * * 6 /erdhot1cron 2>&1 >> /test3/scripts/dba/erdhot1cron.log
here is script inside - edhot1cron
#!/bin/bash
vsysdt=`date +%d%m%y`
date
tar -cvf /dev/st0 backup1/spbl_backup/spblora_backup/*.* backup1/spbt_backup/spbtora_backup/*.* backup1/spbm_backup/spbmora_
backup/*.*
date
here is the cron log i have,
"
Sat Nov 15 08:11:01 IST 2014
Sat Nov 15 08:11:11 IST 2014
[FONT=inherit]"
date command is alone running on cron and tar is not executing- am i not mentioning the correct path or env variable for tar
here is what i see in /bin with ls cmd ( only some files, i have copied here )
lrwxrwxrwx 1 root root 4 May 25 2002 sh -> bash
lrwxrwxrwx 1 root root 3 May 25 2002 gtar -> tar
do i need to add some path variable for cron to execute tar ... please advise
thanks,
Vijayaraghavan.K