Git Product home page Git Product logo

Comments (5)

shankari avatar shankari commented on June 3, 2024

@rugk I am happy to make the change if you like; I am not sure how much control you want over the project.

from borg-cron-helper.

rugk avatar rugk commented on June 3, 2024

So you are saying you need to start the timer once (even after getting enabled), before it runs?

If this is really the case, then yes, feel free to adjust the wiki. However, IMHO that behavior makes no sense at all for systemd and I did not test it right now, but the blog you linked also does not explicitly state that this systemctl start was really required?

So I'd really prefer a better source for that. I mean, are you sure this was really the thing that was causing/fixing the issue?

from borg-cron-helper.

shankari avatar shankari commented on June 3, 2024

So you are saying you need to start the timer once (even after getting enabled), before it runs?

Yes, at least on ubuntu 18.04.

but the blog you linked also does not explicitly state that this systemctl start was really required?

Are you sure? The first line under "Execution" is

Activate at boot and start the backup timer to get your website backed up every day:

Note the "and start" and the lack of any "Optional"

If you want other sources, https://wiki.archlinux.org/index.php/Systemd/Timers says, under "Management" (emphasis mine)

To use a timer unit enable and start it like any other unit (remember to add the .timer suffix). To view all started timers, run:

And yes, if I stop it, it disappears from the list of active timers and returns only when I start it (see below).

# systemctl list-timers | grep borg
Tue 2019-01-01 01:41:45 PST  18h left      Mon 2018-12-31 01:04:38 PST  5h 57min ago borg.timer                   borg.service
# systemctl stop borg.timer
# systemctl list-timers | grep borg
# systemctl start borg.timer
# systemctl list-timers | grep borg
Tue 2019-01-01 00:13:35 PST  17h left      Mon 2018-12-31 01:04:38 PST  5h 57min ago borg.timer                   borg.service

from borg-cron-helper.

shankari avatar shankari commented on June 3, 2024

Fixed in https://github.com/rugk/borg-cron-helper/wiki/How-to-setup%3F/be2916db7f19ee52bef503f3623a387b721dee8f

from borg-cron-helper.

rugk avatar rugk commented on June 3, 2024

Ah, I thought that start would trigger the command immediately, but it seems it only "triggers" the timer, i.e. enables it.

I can imagine, however, that instead of starting it manually a restart of the server would also work, as the enable command does "[e]nable a unit to be started on bootup" (acc. to Arch wiki).
(Maybe that is why I did not notice it.)

Anyway, thanks for fixing this in the wiki. 😄

from borg-cron-helper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.