im having the problem that a bash script is not running from cron. When i instead run it as root from the cli it works well. As you can see i write to a txt file when the script has finished. This is also done when the script runs from cron, only the Oracle dmp is not saved (and obviously not zipped). The job is done extremely quick, so i guess it does not do the oracle export...
Thank you for you help!
backup.sh
#!/bin/bash
#makes an Oracle backup and zips the created file
TIME=`date +%F_%H:%M:%S`
FILENAME=Backup-$TIME
exp userid=user/password file=/home/user/DatabaseBackup/$FILENAME.dmp
zip /home/user/DatabaseBackup/$FILENAME.zip /home/user/DatabaseBackup/$FILENAME$
find /home/user/DatabaseBackup/ -mtime +0 -type f -delete
echo "Backup completed:" `date +%F_%H:%M:%S` >> /home/user/scripts/logBackup.txt
#END
crontab -e 26 * * * * /home/user/scripts/backup.sh