LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-10-2009, 07:53 PM   #1
mickeyd531
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
Question Scripting


How do you write in vi a backup script that would go into a tarball on the temp directory weekly in a cronjob to be run after midnight on Sunday?

Last edited by mickeyd531; 05-10-2009 at 07:59 PM.
 
Old 05-10-2009, 08:05 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026
Here's a good explanation/example of crontab syntax
http://www.adminschoice.com/docs/crontab.htm#Crontab file

If you are editing your own crontab file, the cmd is

crontab -e

which will edit (creating if needed) your crontab file (one per user). The cmd automatically invokes the default editor ; see section 2 on that page
 
  


Reply

Tags
linux


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
scripting phsythax Linux - General 2 06-04-2008 07:22 AM
Scripting atul_sp Linux - Server 1 02-04-2008 11:45 PM
Need scripting help!! stan0934 Programming 5 05-29-2006 01:29 PM
teaching shell scripting: cool scripting examples? fax8 Linux - General 1 04-20-2006 04:29 AM
Need Help on Scripting wongedan Linux - Newbie 2 08-23-2004 08:11 PM


All times are GMT -5. The time now is 08:59 AM.

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