The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
my queries whizkidash Shell Programming and Scripting 4 03-27-2008 06:58 AM
Two small queries skyineyes UNIX for Advanced & Expert Users 3 07-05-2007 02:58 PM
Some queries... 12yearold UNIX for Advanced & Expert Users 6 07-14-2006 04:12 PM
crontab settings for every 10 min eveyday? csaha Shell Programming and Scripting 1 01-30-2006 07:26 AM
SQL queries in background? jpprial UNIX for Dummies Questions & Answers 1 03-07-2001 08:17 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-23-2009
anaigini45 anaigini45 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 18
Queries about crontab settings

Hi,

I've set a cron job using crontab -e to backup databases in my server using the automysql backup script.

I've set it to backup daily at 5.00 p.m. This works fine :


Code:
00 17 * * * sh /etc/cron.daily/automysqlbackup.sh.2.5

But there is another default file, named 'crontab' in the /etc directory that has default settings to perform cron jobs at 4.02 a.m. daily :


Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

So the problem now is, the database backs up daily at 4.02 a.m and 5.00 p.m.

How do I stop the cron from backing up at 4.02 a.m? I only want to have the backups at 5.00 p.m.

Should I remove the crontab file completely from the /etc directory?

Last edited by pludi; 10-23-2009 at 03:06 AM.. Reason: code tags
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0