Hi, tabanna!

Trying to kill the keyboard, tabanna ([EMAIL PROTECTED])
produced 0,7K in 31 lines:

> On Fri, 07 Jan 2000, Wolfgang Weisselberg wrote:
> > think *strongly* about automating
> > the system.)

>       ~ Wolfgang, thank you :)

You are welcome.  

> I would like to Automate the following script using CRON :-


> #!/bin/sh
> #
> #  tar etc
> #
> tar czvf   /zip/etcYYMMDD.tar.gz  /etc  /root  /boot 

You really *want* to check the backup as well. 

> ~ What, please, should I write, and, in which CRON file, to archive, each
> day, with the Date & Time of that same Date ?

Many ways here.  For the date you can use the program date
("man date" and "info date" for more info).  You really want
to store the date into a variable, too.  For the cron entry,
on my system there is a crontab for each user (you'd want root)
and an /etc/crontab, and also a cron.daily.  The first two want
a script as argument, the last one is a directory containing
scripts (this is realised by using /etc/crontab).

More info can be found at "man -S 5 crontab", "man cron" and
"man -S 1 crontab" and probably in the documentation of your
distribution.


-Wolfgang

PS: There is no need to Cc mails to me, I actually *do* read
    this list :-)

Reply via email to