How to run jobs in /etc/cron.daily?
I found this neat backup script that can do differential backups using tar. The website told me to put the script in /etc/cron.daily. I put it in there but the job is not running daily. When I run the job manually, then it runs fine. Any ideas?
|
Is cron running?
Is the script executable? What is the line in /etc/crontab that refers to cron.daily. On my system, it looks like: Code:
25 6 * * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily I hope this helps --Ian |
You edit cron jobs by issuing "crontab -e" as the intended user.
If you want to run a script, read "man crontab" to find out how. These jobs backup 3 of our comps nightly whilst we sleep: Code:
#This is to backup silas/mingdao every morning at 1:00 a.m. |
Quote:
Quote:
Quote:
Quote:
Thanks for the rsync commands (may try this another time), but the script I use calls for tar and creates differential backups onto an external hard drive. The reason is that I need be able to upload the differential backups to a remote site. It's smaller and quicker than a complete backup |
The user who is logged in is the user whose jobs "crontab -e" edits.
Code:
mingdao@silas:~$ man crontab that's way rsync does: Code:
mingdao@silas:~$ man rsync the remote site with rsync; or to the ext. drive and the remote site. |
All times are GMT -5. The time now is 01:05 AM. |