Hacker News new | ask | show | jobs
by mbreedlove 2329 days ago
Yep, I wanted to create a systemd timer to run my nightly backups.

I was pretty shocked that I needed to have three files. My backup script, a systemd service to call the backup script, and a systemd timer to call my systemd service that calls my backup script.

It took A LOT of fiddling and reading the Arch wiki before I had everything working as I wanted it to.

1 comments

I have also set up timers in Arch, and it wasn't that bad...
Really? How did you do it then?
https://wiki.archlinux.org/index.php/Systemd/Timers

You can also find more documentation on the official systemd website, or Gentoo, CoreOS, and RedHat's website.

As an example: https://wiki.gentoo.org/wiki/Systemd#Timer_services

I'm confused, unless I'm missing something, both of those pages seem to describe exactly the process mbreedlove described:

    1) create systemd service to call your script
    2) create a systemd timer to call that service
What did you do differently?
I didn't say I did anything different, I said it wasn't that difficult.