LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-28-2008, 05:36 AM   #1
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Rep: Reputation: 30
Cron Job????


I have a script called svn-fullbackup.sh placed at /etc/cron.daily directory.I want it to run everyday at 11:30p.m.What changed I need to make in crontab file or else other so that I can enable the backup process everyday.It seems that placing the file under cron.daily is not taking the backup.

Pls Help
 
Old 04-28-2008, 06:14 AM   #2
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Rep: Reputation: 31
Quote:
Originally Posted by ajeetraina View Post
I have a script called svn-fullbackup.sh placed at /etc/cron.daily directory.I want it to run everyday at 11:30p.m.What changed I need to make in crontab file or else other so that I can enable the backup process everyday.It seems that placing the file under cron.daily is not taking the backup.

Pls Help
First, make sure the script is executable:
Code:
chmod +x svn-fullbackup.sh
Then place it somewhere (I use /usr/local/sbin for things like that).
Remove the copy in /etc/cron.daily (that will run at 4:30am I think).
Edit your cron jobs:
crontab -e
This will make it run at 11:30pm:
Code:
30 23 * * * svn-fullbackup.sh
Save and exit (most likely you're using vi, so you may want to grab a quick reference for it's commands).
That should get you running!
 
Old 04-28-2008, 06:15 AM   #3
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Original Poster
Rep: Reputation: 30
How can I see if the cron job is set or list of crond jobs in my machine

Last edited by ajeetraina; 04-28-2008 at 06:19 AM.
 
Old 04-29-2008, 09:20 AM   #4
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Rep: Reputation: 31
Quote:
Originally Posted by ajeetraina View Post
How can I see if the cron job is set or list of crond jobs in my machine
Cron jobs (scripts, programs, etc.) located in /etc/cron.hourly will be run every hour. Cron jobs in /etc/cron.daily will be run daily, etc.
There are also cron jobs set for the users, which you can see by issuing:
Code:
crontab -l
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
Cron job help tejama Linux - Newbie 16 11-09-2007 01:08 PM
Cron Job newbie_adm Linux - Newbie 2 06-05-2006 11:52 PM
cron job wbatzle Linux - Newbie 2 07-12-2005 04:19 PM
cron job? dr_zayus69 Linux - Newbie 14 12-01-2004 06:16 PM


All times are GMT -5. The time now is 02:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration