Implement systemd timers #1

Open
opened 2025-05-03 20:19:04 +02:00 by malte70 · 0 comments
Owner

Add a systemd .timer unit
(man page, ArchLinux Wiki) unit for periodic backups as an alternative to the cron job. (The user still needs a Cronjob if he runs a systemd-free distribution or even a different OS like FreeBSD.)

We have much more options for when and how the backup job should run, and the user can easily override parts of the .timer (ArchLinux Wiki) to configure it for his needs.

NOTE: This would work best after the different backup tasks are implemented as plugins, so that the .timer unit executes the main backup.zsh script, which then runs the actual backups depending on a system-wide config file.

Add a systemd `.timer` unit ([man page](https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html), [ArchLinux Wiki](https://wiki.archlinux.org/title/Systemd/Timers)) unit for periodic backups as an alternative to the `cron` job. _(The user still needs a Cronjob if he runs a systemd-free distribution or even a different OS like FreeBSD.)_ We have much more options for when and how the backup job should run, and the user can easily override parts of the .timer ([ArchLinux Wiki](https://wiki.archlinux.org/title/Systemd#Editing_provided_units)) to configure it for his needs. **NOTE:** This would work best after the different backup tasks are implemented as plugins, so that the .timer unit executes the main `backup.zsh` script, which then runs the actual backups depending on a system-wide config file.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: malte70/backup.zsh#1
No description provided.