So I've created a backup script that tar's up files, rsyncs them to a remote server, and removes the tar afterwards. I've manually tested the file and it runs, however I cannot get it to run via cron.
Script Details:
-rwxr-xr-x 1 root root 792 Sep 21 18:44 backup.sh
Crontab Details:
* 04 * * * sh /home/user/scripts/backup.sh >/dev/null 2>&1
Syslog Output:
Sep 23 16:25:01 user CRON[15244]: (root) CMD (sh /home/user/scripts/backup.sh >/dev/null 2>&1)
I've attempted to run just /home/user/scripts/backup.sh without the sh in front also, however it gives the same syslog output.
Any help on this is appreciated. Without any real details in the syslog, I've run into a roadblock.
/dev/null
and see what it contains? – muru Sep 24 '15 at 03:39