Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-23-2010, 10:29 PM   #1
Registered: Aug 2009
Posts: 349

Rep: Reputation: 16
crontab -e load a file into

before i leave for work I often make a copy of my crontab file

crontab -l > /home/casper/backup`date +%Y%m%d

when the crontab gets corrupted or someone changes it - i reload the backup - usually by opening up the crontab with crontab -e, then opening up the backupYYYYmmdd file in a text editor and cutting and pasting the backup contents into crontab -e

just wondering - is there a quicker way. I tired

crontab -e < /home/casper/backup20100723

but it does not work.
Old 07-24-2010, 02:24 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
man crontab

crontab /home/casper/backup20100723

Last edited by smoker; 07-24-2010 at 02:27 AM.


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
How to send a html file as an file attachment to my mail from crontab? GRD Linux - Newbie 2 06-03-2008 12:39 PM
How to write crontab to check file size and all file in a directory? modpriest Linux - Newbie 1 02-14-2008 07:48 AM
crontab file wahoo_128 Linux - Newbie 1 12-17-2007 01:27 PM
crontab --u user file binary_0011 Linux - Newbie 2 05-06-2006 06:14 AM
CRONTAB file scottpioso Linux - General 14 11-29-2003 02:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:55 AM.

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