[systemd-devel] Scheduling 3 periodic jobs using systemd
t.schneider at disroot.org
t.schneider at disroot.org
Fri Jul 12 08:50:04 UTC 2024
There's no script (or whatsoever) in this backup functionality.
It's only rsnapshot [1] (https://wiki.archlinux.org/title/Rsnapshot) and
systemd-timer [2] involved.
Am 2024-07-12 10:35, schrieb Barry Scott:
>> On 12 Jul 2024, at 08:34, t.schneider at disroot.org wrote:
>>
>> Setting the time of day requires detailed knowledge about the runtime
>> of each job.
>>
>> But this forecast is not accurate and this means any setting could
>> result in same error.
>
> Agreed that is a problem with this approach.
>
> Or you have the code that locks wait for the lock to be freed does that
> help?
> Are you using flock in the script, then its a easy change.
>
> You still cannot ensure the order, but you can ensure that they will
> all run sequentially.
>
> Personally I encode the rules for my incremental vs. full backup into
> my hourly backups script.
> So I only have one timer.
>
> Barry
Links:
------
[1] https://wiki.archlinux.org/title/Rsnapshot
[2] https://wiki.archlinux.org/title/Systemd/Timers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240712/8477de86/attachment.htm>
More information about the systemd-devel
mailing list