-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide systemd service and timer files #71
Comments
Does Debian 9 not include an |
As far as i know anacron can only do jobs daily. So the hourly or frequent jobs would not be possible. |
We may have different definitions of "infrequent" in our heads. If a box is off for most of the day that also means that changes aren't being made to the filesystem, so I wouldn't think that hourly jobs would be needed. Perhaps on-boot and/or on-shutdown snaps would be a suited option. |
Anacron should be started at boot (at least it is on Ubuntu), but to avoid slowing down the boot too much it starts the daily/weekly/monthly tasks with a delay. On Ubuntu, this is configured in |
I have deinstalled cron completly und just use systemd timers on my Debian system. Maybe it can be done with anacron also but i have never tried it. I think its not installed on Debian by default but i could be wrong. This issue was not really to solve my problem but to include the systemd timer files in the package for people who want to use them instead of cron. |
Hi,
i just started using zfs-auto-snapshot on my Debian 9 server and want to suggest to add native
systemd service files for the script and also to add systemd timers to replace cron.
I run my server very infrequently and cronjobs only run when the server is online during that time. So it would probably miss most of the weekly snapshots i intended to make. With systemd there is the Persistent option on timers which let the service run whenever the server is running again and not missing snapshots.
Here are the service files and timers i made, based on an archlinux aur repo which provided systemd files, with some tweaks (using Type oneshot instead of simple).
These really should be provided upstream so every distribution gets it.
The text was updated successfully, but these errors were encountered: