Hi all,
I have a backup script that work as expected when run manually but when I tried to execute it via cronjob, then nothing happen..
Could someone please tell me if you see anything obviously wrong with my cron?
Thank you
Fred
I have a backup script that work as expected when run manually but when I tried to execute it via cronjob, then nothing happen..
crontab -l
Code:
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute (0-59)
#| hour (0-23)
#| | day of the month (1-31)
#| | | month of the year (1-12 or Jan-Dec)
#| | | | day of the week (0-6 with 0=Sun or Sun-Sat)
#| | | | | commands
#| | | | | |
#### run database backup script every day at 4am
00 4 * * * /root/dbatools/backupDatabases.sh >> /var/log/dbbackup.log 2>&1
Thank you
Fred