[ale] a simple backup script

hirsch at zapmedia.com hirsch at zapmedia.com
Tue Jan 15 09:21:20 EST 2002


Ken Nagorski writes:
 > Hi there, 
 > 
 > I have a simple backup script. It just copies some config files to a backup
 > dir in /home and then tars up /home to a tape device. There isn't that much
 > so it just rewinds the device and does it over every night. Whatever... It's
 > simple but effective backup. 
 > 
 > I do have a question. tar seems to be sending root and email of everyhting
 > that it backs up. I did notice that I inadvertently left the 'v' option in
 > tar. Is some default operation of tar to send the output to the owner of the
 > process if there is no terminal as in this case it runs form cron? I mean,
 > it isn't a problem, it is kinda cool but I was just wondering. 

If I understand you, this is built into cron.  The output of a cron
job is sent to the owner of the job.  You can redirect to /dev/null
and I think no mail gets sent.  You can also set certain enviroment
variables to send mail to another user, I believe.

--Michael


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list