Hi all

I'm trying to run a daily back automatically using anacron

I've written a sh-script (called - "daily.snapshot") using rsync which works 
fine on the command line as root (if executed manually) and put it 
in /usr/local/bin

The next stage is to use anacron to run it for me daily.  

I've added /usr/local/bin to the PATH (hopefully)

I was wanting it to log in /var/log/ etc ?? and time out wasn't critical so 
made it 100 - to keep away from cro. daily??

From the reading/googling I've done I understand  that I need to add a line to 
anacrontab this is what I've come up with:

# /etc/anacrontab: configuration file for anacron

# See anacron(8) and anacrontab(5) for details.

SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/:/usr/local/bin

# These replace cron's entries
1       60      cron.daily      nice run-parts --report /etc/cron.daily
7       75      cron.weekly     nice run-parts --report /etc/cron.weekly
30      90      cron.monthly    nice run-parts --report /etc/cron.monthly
1       100     daily.snapshot  nice daily.snapshot --report /var/log/daily.snapshot

whaddya recon??

cheers................dave

Mail to: "[EMAIL PROTECTED]"

____________________________________________

Kmail using Kontact - KDE Desktop 3.2.1
Mepis Linux - Kernel 2.4.22 (i686)
____________________________________________

Reply via email to