5 ms·
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
by mbreedlove 7y 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.
- markandrewj 7y agoI have also set up timers in Arch, and it wasn't that bad...
- catalogia 7y agoReally? How did you do it then?
- markandrewj 7y agohttps://wiki.archlinux.org/index.php/Systemd/Timers 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 https://wiki.gentoo.org/wiki/Systemd#Timer_services
- catalogia 7y agoI'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?
- markandrewj 7y agoI didn't say I did anything different, I said it wasn't that difficult.