SLUG Mailing List Archives
Re: [SLUG] crontab
- To: Craig Ayliffe <cayliffe@xxxxxxxxx>
- Subject: Re: [SLUG] crontab
- From: GeraldCC <gcsgcatling@xxxxxxxxxxx>
- Date: Thu, 30 Sep 2010 17:39:48 +1000
- Cc: slug@xxxxxxxxxxx
- Reply-to: gcsgcatling@xxxxxxxxxxx
- User-agent: KMail/1.13.5 (Linux/22.214.171.124-pclos4.pae; KDE/4.5.1; i686; ; )
On Thursday, September 30, 2010 01:52:51 pm you wrote:
> On Thu, Sep 30, 2010 at 10:26 AM, GeraldCC <gcsgcatling@xxxxxxxxxxx> 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)
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.