LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2008, 01:55 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
Schedule job


I am preparing a write a script for system schedule backup job , now our backup cycle is quite complicate eg. the backup job devides daily , weekly , bi-weekly , monthly , bi-monthly , yearly , some backup job run at weekly or bi-weekly , some run at monthly ( 28th , 29th , 30th or 31th , depends the month ) , some do not run at holiday , some run at yearly only , there are different backup job that run on different day ( some are full backup and some are incremental backup ) , so the script need to handle different condition .

To simplify the schedule , I have a thinking if I have a year plan , so that I can assign a backup job to each day , as below

Date Do backup job
=== ==========
2009-1-1 job1
2009-1-2 job2
2009-1-3 job3
2009-1-4 job1
2009-1-5 job2
2009-1-6 job4
2009-1-7 job1
2009-1-8 job3
" "

As above , I could assign different backup job by one time , so that I don't need to write a intelligent script to handle different condition , is it possible ? thx
 
Old 12-05-2008, 03:47 AM   #2
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Rep: Reputation: 32
What about a script with cron? It's designed for this kind of work. Have a look at

Quote:
man cron
 
Old 12-05-2008, 03:57 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by unihiekka View Post
What about a script with cron? It's designed for this kind of work. Have a look at
thx reply ,

cron would do that but it still reqires to write a script , what I want is just not to write a complicated script to handle it ( as I am too familiar with it ) , is there any simpler method to do it ? thx
 
  


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
LXer: Schedule Tasks Using Gnome-schedule (cron & at GUI) LXer Syndicated Linux News 0 07-28-2007 01:31 AM
How do I schedule a cron job? BillyGalbreath Debian 1 05-18-2006 10:52 PM
how to schedule an "at" job to start when another finishes? ashlock Programming 10 01-14-2005 12:12 AM
How to schedule an automated job macaldwell Linux - Newbie 8 05-29-2004 03:07 PM
schedule job to be run at 8:00pm every night ashley75 Linux - General 22 10-24-2003 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration