[systemd-devel] Scheduling 3 periodic jobs using systemd

2024-07-12 Thread t . schneider
Hello, I have a backup job (using rsnapshot) that must be executed daily, weekly and monthly. Therefore I created these systemd-timers: # /etc/systemd/system/rsnapshot-daily.timer [Unit] Description=rsnapshot daily backup [Timer] OnCalendar=daily RandomizedDelaySec=10m Persistent=true Unit=rsn

Re: [systemd-devel] Scheduling 3 periodic jobs using systemd

2024-07-12 Thread Barry
> On 12 Jul 2024, at 08:19, t.schnei...@disroot.org wrote: > > This means, one must ensure that these scheduled jobs run sequentially in > this order: > monthly - weekly - daily Maybe you can set the time of day so that you get the sequencing. Monthly at 01:00, weekly at 03:00 etc Or you cou

Re: [systemd-devel] Scheduling 3 periodic jobs using systemd

2024-07-12 Thread t . schneider
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. Am 2024-07-12 09:29, schrieb Barry: On 12 Jul 2024, at 08:19, t.schnei...@disroot.org wrote: This means, one must ensu

Re: [systemd-devel] Scheduling 3 periodic jobs using systemd

2024-07-12 Thread Barry Scott
> On 12 Jul 2024, at 08:34, t.schnei...@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.

Re: [systemd-devel] Scheduling 3 periodic jobs using systemd

2024-07-12 Thread t . schneider
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.schnei...@disroot.org wrote: Setting the time of day requ

Re: [systemd-devel] Scheduling 3 periodic jobs using systemd

2024-07-12 Thread Barry Scott
> On 12 Jul 2024, at 09:50, t.schnei...@disroot.org wrote: > > There's no script (or whatsoever) in this backup functionality. > It's only rsnapshot > (https://wiki.archlinux.org/title/Rsnapshot) and systemd-timer >

Re: [systemd-devel] Scheduling 3 periodic jobs using systemd

2024-07-12 Thread t . schneider
Could you please explain the idea behind this proposal? Am 2024-07-12 11:53, schrieb Barry Scott: On 12 Jul 2024, at 09:50, t.schnei...@disroot.org wrote: There's no script (or whatsoever) in this backup functionality. It's only rsnapshot [1] (https://wiki.archlinux.org/title/Rsnapshot) and s

Re: [systemd-devel] Scheduling 3 periodic jobs using systemd

2024-07-12 Thread Lennart Poettering
On Fr, 12.07.24 09:12, t.schnei...@disroot.org (t.schnei...@disroot.org) wrote: > Hello, > I have a backup job (using rsnapshot) that must be executed daily, weekly > and monthly. > Therefore I created these systemd-timers: Why three timers? Just use a single one and use OnCalendar= multiple time

Re: [systemd-devel] Scheduling 3 periodic jobs using systemd

2024-07-12 Thread Barry Scott
> On 12 Jul 2024, at 11:08, t.schnei...@disroot.org wrote: > > Could you please explain the idea behind this proposal? > I assume you run three different services to do the backups. Each with different parameters, month, weeek, day config. flock allows you serialise the access to a resource,

Re: [systemd-devel] Scheduling 3 periodic jobs using systemd

2024-07-12 Thread Leon Fauster
Am 12.07.24 um 16:02 schrieb Barry Scott: On 12 Jul 2024, at 11:08, t.schnei...@disroot.org wrote: Could you please explain the idea behind this proposal? I assume you run three different services to do the backups. Each with different parameters, month, weeek, day config. flock allows you