Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crontab [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mystified
l33t
l33t


Joined: 14 Feb 2004
Posts: 771

PostPosted: Thu Jun 28, 2007 4:16 pm    Post subject: Crontab [solved] Reply with quote

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
View user's profile Send private message
vad3r
Guru
Guru


Joined: 02 May 2004
Posts: 461
Location: Munich, Germany

PostPosted: Thu Jun 28, 2007 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
mystified
l33t
l33t


Joined: 14 Feb 2004
Posts: 771

PostPosted: Thu Jun 28, 2007 4:44 pm    Post subject: Reply with quote

Thanks! I fixed it and hopefully it will work now.
Back to top
View user's profile Send private message
vad3r
Guru
Guru


Joined: 02 May 2004
Posts: 461
Location: Munich, Germany

PostPosted: Thu Jun 28, 2007 4:46 pm    Post subject: Reply with quote

If it works out please add SOLVED to the title.

Thanks
Back to top
View user's profile Send private message
mystified
l33t
l33t


Joined: 14 Feb 2004
Posts: 771

PostPosted: Thu Jun 28, 2007 4:51 pm    Post subject: Reply with quote

I sure will. The next cronjob is supposed to run at 12:30 so I'll know by then.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum