[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-factory
Subject:    Re: cron.daily stopped working
From:       Oliver Schwabedissen <oliver () schwabedissen ! name>
Date:       2021-10-18 20:05:21
Message-ID: 7baddfc0-4ed3-6ceb-d82a-17a40edb711d () schwabedissen ! name
[Download RAW message or body]

[Attachment #2 (text/plain)]

Am 18.10.21 um 14:44 schrieb Cristian Rodríguez:
>
>
> On Mon, Oct 18, 2021 at 9:07 AM Carlos E. R. 
> <robin.listas@telefonica.net> wrote:
>
>
>     I don't like the idea of the computer waking up on its own.
>
>     It can be a laptop, so wasting battery. Worse, the laptop can be
>     in its
>     bag, and burn in fire, because there is no cooling.
>
>     A very windowsy idea.
>
>
> The OP is already waking up the computer using the BIOS alarm.. if it 
> is a laptop on baterry then.. the service can be made to start only on 
> acpower..

No, not the OP, *I* am using BIOS to wake up the PC (no laptop) in the 
night to backup local data to my NAS and run some other scripts..

Cron works fine using /usr/libexec/cron/run-crons. Will check anachron, 
as the system is not running 24/7. However, I need support for time 
zones in cron scripts as the backup should always start at 2am UTC (BIOS 
clock is running on UTC), although in live in CET (currently CEST).

E.g. crontab for root contains entries like this:

# Cron jobs UTC timezone
CRON_TZ=':UTC'
# Backup daily
05  2  *  *  *  ...
...

# Cron jobs Berlin timezone
CRON_TZ=':Europe/Berlin'
...

Not sure if anachron supports different time zones, though.

Regards,

Oliver

-- 
PGP Public Key available at https://pgp.mit.edu/
Key fingerprint = 3264 280C 05B1 572F 3F0B 42B8 1E7B 2D9D 063B D507
[Attachment #3 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Am 18.10.21 um 14:44 schrieb Cristian
      Rodríguez:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPBLoAfvEjOTTZjQwJ-=xC6g5PXgooOXU4+b2FGYyYuMh6dcaQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr"><br>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Mon, Oct 18, 2021 at 9:07
            AM Carlos E. R. &lt;<a
              href="mailto:robin.listas@telefonica.net"
              moz-do-not-send="true" \
class="moz-txt-link-freetext">robin.listas@telefonica.net</a>&gt;  wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex"><br>
            I don't like the idea of the computer waking up on its own.<br>
            <br>
            It can be a laptop, so wasting battery. Worse, the laptop
            can be in its <br>
            bag, and burn in fire, because there is no cooling.<br>
            <br>
            A very windowsy idea.<br>
            <br>
          </blockquote>
          <div><br>
          </div>
          <div>The OP is already waking up the computer using the BIOS
            alarm.. if it is a laptop on baterry then.. the service can
            be made to start only on acpower..  </div>
        </div>
      </div>
    </blockquote>
    <p>No, not the OP, <b>I</b> am using BIOS to wake up the PC (no
      laptop) in the night to backup local data to my NAS and run some
      other scripts.. <br>
    </p>
    <p>Cron works fine using /usr/libexec/cron/run-crons. Will check
      anachron, as the system is not running 24/7. However, I need
      support for time zones in cron scripts as the backup should always
      start at 2am UTC (BIOS clock is running on UTC), although in live
      in CET (currently CEST). <br>
    </p>
    <p>E.g. crontab for root contains entries like this:</p>
    <p><span style="font-family:monospace"><span
          style="color:#1818b2;background-color:#ffffff;"># Cron jobs
          UTC timezone</span><span
          style="color:#000000;background-color:#ffffff;">
        </span><br>
        CRON_TZ=':UTC'
        <br>
        <span style="color:#1818b2;background-color:#ffffff;"># Backup
          daily</span><span
          style="color:#000000;background-color:#ffffff;">
        </span><br>
        05  2  *  *  *  ...<br>
        ...</span></p>
    <p><span style="font-family:monospace"><span
          style="color:#1818b2;background-color:#ffffff;"># Cron jobs
          Berlin timezone</span><span
          style="color:#000000;background-color:#ffffff;">
        </span><br>
        CRON_TZ=':Europe/Berlin'<br>
        ...</span></p>
    <p>Not sure if anachron supports different time zones, though.</p>
    <p>Regards,</p>
    <p>Oliver<br>
    </p>
    <div class="moz-signature">-- <br>
      PGP Public Key available at <a class="moz-txt-link-freetext" \
href="https://pgp.mit.edu/">https://pgp.mit.edu/</a><br>  Key fingerprint = 3264 280C \
05B1 572F 3F0B 42B8 1E7B 2D9D 063B  D507</div>
  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic