I want to make a backup of my
/var/www folders and save them as tar.gz files to my mounted network file server (uslons001).
Here is my bash file located in:
#!/bin/bash mkdir /home/lv_admin/uslons001/`date +%d%m%y` cd /home/lv_admin/uslons001/`date +%d%m%y` tar -czf mysql.tar.gz /var/lib/mysql tar -czf www.tar.gz /var/www
Which works PERFECTLY fine when I execute it in a cmd shell but when I setup the cron job it never runs, so I'm not setting the cron job up properly. My cron job looks like this.
36 10 * * 5 /bin/backups/mysqlbackup.sh
..there is also nothing in the /var/log/cron.log file, so no errors are being logged. (even after enabling cron logging in the /etc/syslog.conf file