On Thursday, September 30, 2010 01:52:51 pm you wrote:
> On Thu, Sep 30, 2010 at 10:26 AM, GeraldCC <[email protected]> wrote:
> > Hi To All,
> > I think this may have been asked in the dim and distant past, but as I
> > have many drive failures, at unexpected times, I now have started
> > backing up my home folder regularly. My question is this.....is it
> > posible to do the backup
> > on boot? I have tried--onboot do this, but crontab does not like it. How
> > can I
> > do the backup on booting when I switch at odd times???
> > Many thanks for you conciderd thoughts.
> > Gerald
> 
> See "man 5 crontab" you can use the term "@reboot" to Run once, at startup.
> 
> (This is from a Ubuntu 8.10 server)
Hi Craig,
Well---It seemed to work on my scratch box, but on doing the same thing on my 
mail system the @reboot does not seem to work. At least, the script that 
should run sends output to a file to tell me what has happened. Nothing is 
written to this file.
If i put a time into crontab to run my script all works, I am told when the 
system started backing up and when it finished.
This does not happen with @reboot.
The man page does not indicate any case sensitivity, so I used lower as did 
the man page.
the only difference between the 2 systems is that the test box has a login 
screen whilst the mail box logs in automatically.
I willl try this on the mail box, but if this is the problem I shall have to 
go back to a timed backup as occasionally the system runs on autopilot, 
starting up and shutting down.
Gerald
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to