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 04-27-2006, 04:46 PM   #1
Registered: Mar 2006
Location: Iowa
Distribution: Suse 10.0
Posts: 70

Rep: Reputation: 15
Question using crontab to back up files

first off I'm just trying to get it to work.

provided some tips.

I'm creating a simple script to append to a text file to test whether it works.

call it hello. so in the hello.cron file I have: * * * * * /root/bin/

I type crontab hello.cron.......all things ok. but every minute it gets something about mail in the spooler.

Old 04-27-2006, 06:15 PM   #2
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
If a cron job produces output, it will mail it to you. If you don't want the mail, you need to make your script quiet. Maybe redirect it to /dev/null if all else fails:
* * * * * /root/bin/ 2>&1 > /dev/null


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
back up files in mandrake frayed2 Mandriva 4 04-27-2005 09:14 PM
crontab & quota files are temporary files? hamish Linux - Software 0 07-10-2004 02:09 PM
How to get back my --linux-.--- files?? dufferin Slackware 2 06-28-2004 01:30 AM
How to Back Up the Kernel and Files? Lucinda Slackware 9 05-26-2004 05:51 AM
newbie? back-up OS/files perfect20002 Linux - Software 0 06-19-2003 08:37 AM > Forums > Linux Forums > Linux - Newbie

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