Re: cron scheduling on a laptop and backups

2020-06-07 Thread Switch 1024
> One suggestion would be to, just like on Linux, run jobs that need to
> run at least once a day (if the machine is up at least once a day) using
> anacron.  The anacron tool is available as a package.
>
> You would trigger anacron with a "@reboot", and possibly also with a
> "@daily" cron job.

Thank you very much, got it configured!



Re: cron scheduling on a laptop and backups

2020-06-07 Thread Andreas Kusalananda Kähäri
On Sun, Jun 07, 2020 at 06:52:50AM +, Switch 1024 wrote:
> Hello,
> 
> first time OpenBSD user here. I came from 20 years of linux, then 6
> years of freebsd, and finally arrived at OpenBSD, thank you guys for
> doing such a great job. It just feels right, feels like home!
> 
> While checking about how to backup the system correctly, and what
> files I need to recover my system and checked the altroot strategy,
> which is executed from the daily script which is started via cron.
> 
> I checked my cron log and there are no executions of daily, weekly,
> etc. I only see newsyslog jobs being executed. Right, I put my laptop
> to sleep or turn it off most of the time when I am done working.
> 
> So how to deal with this correctly? Change the hours to run the
> backups during the day? Is there a way to tell cron to run jobs it
> missed? (Reading the man pages, I did not see that there would be ...)
> 
> How do you guys schedule these tasks (also cleanup tasks to clean out
> /tmp etc. on your laptops?
> 
> Thank you,
> Best regards
> Rai

One suggestion would be to, just like on Linux, run jobs that need to
run at least once a day (if the machine is up at least once a day) using
anacron.  The anacron tool is available as a package.

You would trigger anacron with a "@reboot", and possibly also with a
"@daily" cron job.

-- 
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden

.



cron scheduling on a laptop and backups

2020-06-07 Thread Switch 1024
Hello,

first time OpenBSD user here. I came from 20 years of linux, then 6
years of freebsd, and finally arrived at OpenBSD, thank you guys for
doing such a great job. It just feels right, feels like home!

While checking about how to backup the system correctly, and what
files I need to recover my system and checked the altroot strategy,
which is executed from the daily script which is started via cron.

I checked my cron log and there are no executions of daily, weekly,
etc. I only see newsyslog jobs being executed. Right, I put my laptop
to sleep or turn it off most of the time when I am done working.

So how to deal with this correctly? Change the hours to run the
backups during the day? Is there a way to tell cron to run jobs it
missed? (Reading the man pages, I did not see that there would be ...)

How do you guys schedule these tasks (also cleanup tasks to clean out
/tmp etc. on your laptops?

Thank you,
Best regards
Rai