LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-17-2004, 12:14 PM   #1
dennis_89
LQ Newbie
 
Registered: Jun 2004
Posts: 27

Rep: Reputation: 15
still trying to get timed backups


I am completely lost with this timed backups. I wrote a script to allow for backing up SHARES, I now have to have it so that I can do daily and weekly backups. I know that I have to put a link in the cron.d file and I know that I have to do something with crontab. I looked at the man 5 crontab, but I have know idea what I am doing. Does anyone know where I woiuld put the script to allow for timed backups. Does it go in the cron.d file or something? Sorry, first time doing this. I know that the code is:
Code:
# run five minutes after midnight, everyday
   5 0 *** $HOME/bin/daily.job >> $HOME/tmp/out 2.1&1
and so on, but I don't know where I am supposed to be putting this.

Any help,

Cheers,

Dennis
 
Old 06-17-2004, 12:44 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Try "crontab -e" to edit the crontab for the user.
 
Old 06-17-2004, 01:42 PM   #3
dennis_89
LQ Newbie
 
Registered: Jun 2004
Posts: 27

Original Poster
Rep: Reputation: 15
I am trying and it still doesn't seem to be working. I have been looking around and it says that there shoiuld be a directory /etc/scheduler/cronstabs/"user" but it is not there. Am I suppsed to create it or something? I have found the crontab file, but it is not what I am looking for. Any ideas???
 
Old 06-17-2004, 05:26 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Like stickman said, the crontab file is what you are looking for..
Especially if you are testing...
As root do crontab -e and enter the data as per your code snippet..

There is a series of directories for placing daily, monthly, hourly etc cron jobs into..
Try /etc/cron.daily/, /etc/cron.hourly/ etc
/etc/cron.d/ is for shorter than hourly jobs..

Different distros may use different locations tho' depending on the cron programme installed.

Last edited by peter_robb; 06-17-2004 at 05:29 PM.
 
  


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
RPC: Timed Out adelaideyip Linux - Networking 0 08-24-2004 04:07 PM
Connection timed out tuttu Linux - Networking 2 08-06-2004 07:05 PM
Timed Script rridler Programming 10 07-01-2004 10:52 PM
timed backups dennis_89 Linux - Networking 2 06-17-2004 09:55 AM
Connection timed out Valluvan Programming 6 12-22-2002 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 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