View previous topic :: View next topic |
Author |
Message |
mystified l33t
Joined: 14 Feb 2004 Posts: 771
|
Posted: Thu Jun 28, 2007 4:16 pm Post subject: Crontab [solved] |
|
|
I set up crontab to do varies jobs for me like emerge --sync, updatedb, and a backup of a server. Those are working fine but I have a backup hd that uses mirdir. Mirdir syncs with the backup and makes an exact copy of what is on the original partition. But for some reason it's not working in crontab. This is what I have:
30 12 3 * * /usr/bin/mirdir -enone /etc /mnt/7/etc > /var/log/mirdir.log
My log was empty so I ran the command and it obviously hadn't been run by the output. Any suggestions?
Thanks.
Last edited by mystified on Thu Jun 28, 2007 6:54 pm; edited 1 time in total |
|
Back to top |
|
|
vad3r Guru
Joined: 02 May 2004 Posts: 461 Location: Munich, Germany
|
Posted: Thu Jun 28, 2007 4:32 pm Post subject: |
|
|
I'm not sure if you realized that this job will run only on every third day of the month.
Code: | The first five fields shall be integer patterns that specify the following:
1. Minute [0,59]
2. Hour [0,23]
3. Day of the month [1,31]
4. Month of the year [1,12]
5. Day of the week ([0,6] with 0=Sunday)
|
|
|
Back to top |
|
|
mystified l33t
Joined: 14 Feb 2004 Posts: 771
|
Posted: Thu Jun 28, 2007 4:44 pm Post subject: |
|
|
Thanks! I fixed it and hopefully it will work now. |
|
Back to top |
|
|
vad3r Guru
Joined: 02 May 2004 Posts: 461 Location: Munich, Germany
|
Posted: Thu Jun 28, 2007 4:46 pm Post subject: |
|
|
If it works out please add SOLVED to the title.
Thanks |
|
Back to top |
|
|
mystified l33t
Joined: 14 Feb 2004 Posts: 771
|
Posted: Thu Jun 28, 2007 4:51 pm Post subject: |
|
|
I sure will. The next cronjob is supposed to run at 12:30 so I'll know by then. |
|
Back to top |
|
|
|