Hi
I am using linux 5.x
(
uname -r
2.6.18-348.16.1.0.1.el5PAE
)
I have 2 crontab jobs set up as following .
cat backup_confluence.sh
#!/bin/bash
# bash shell script to backup confluence backups to bccpfr
# Schedule this script after the backups are performed that day
#
# Setup the environment for the bourne-again shell
. ./.bash_profile
#
# Copy the daily backups for confluence
find /usr/share/confluence/data/backups -mtime -1 \! -type d -exec ls {} \; -exec scp {} bccpfr:/usr/backup/confluence \;
second
cat backup_jira.sh
#!/bin/bash
# bash shell script to backup jira backups to bccpfr
# Schedule this script after the backups are performed that day
#
# Setup the environment for the bourne-again shell
. ./.bash_profile
#
# Copy the daily backups for jira
find /usr/share/jira/backups -mtime -1 \! -type d -exec ls {} \; -exec scp {} bccpfr:/usr/backup/jira \;
cron as following
$ crontab -l
13 06 * * * /home/lsg/backup_jira.sh
18 06 * * * /home/lsg/backup_confluence.sh
Issue
Both the above .sh are running properly when executed manually but they are not running automatically at the given time crontab job.
Kindly help me on this issue.
many thanks
J