<div dir="auto"><div>It might make more sense to create three services. Otherwise you can add overrides for some of them (e.g. /etc/.../rsnapshot@weekly.service) with only a [Unit] section containing a Before=/After= declaration <br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 15, 2024, 14:52  <<a href="mailto:t.schneider@disroot.org">t.schneider@disroot.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Actually there's no dedicated *.service file for each period, but only 1 service file:</p>
<p># cat /etc/systemd/system/rsnapshot@.service<br>[Unit]<br>Description=rsnapshot (%I) backup<br>Requires=backup.mount<br>After=backup.mount</p>
<p>[Service]<br>Type=oneshot<br>Nice=19<br>IOSchedulingClass=idle<br>ExecStart=/usr/bin/rsnapshot %I</p>
<div id="m_6787951135464193082signature"></div>
<p><br></p>
<p id="m_6787951135464193082reply-intro">Am 2024-07-12 18:59, schrieb Nils Kattenbeck:</p>
<blockquote type="cite" style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div id="m_6787951135464193082replybody1">
<div dir="auto">The After/Before need to be set in the .service files, not the .timer files</div>
<br>
<div>
<div dir="ltr">On Fri, Jul 12, 2024, 13:26 <<a href="mailto:t.schneider@disroot.org" rel="noreferrer noreferrer" target="_blank">t.schneider@disroot.org</a>> wrote:</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Actually this was my idea, too.</p>
<p>However, could you precise what to enter in which file?</p>
<p>I was tanding to relevant *.timer files.</p>
<div id="m_6787951135464193082v1m_5547942757819306391signature"></div>
<p><br></p>
<p id="m_6787951135464193082v1m_5547942757819306391reply-intro">Am 2024-07-12 12:43, schrieb Nils Kattenbeck:</p>
<blockquote style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div id="m_6787951135464193082v1m_5547942757819306391replybody1">
<div dir="auto">If you set proper After/Before dependencies, the units scheduled later should wait for the earlier units to finish</div>
<br>
<div>
<div dir="ltr">On Fri, Jul 12, 2024, 11:10 <<a href="mailto:t.schneider@disroot.org" rel="noreferrer noreferrer" target="_blank">t.schneider@disroot.org</a>> wrote:</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Setting the time of day requires detailed knowledge about the runtime of each job.</p>
<p>But this forecast is not accurate and this means any setting could result in same error.</p>
<div id="m_6787951135464193082v1m_5547942757819306391v1m_1604606810798756051signature"></div>
<p><br></p>
<p id="m_6787951135464193082v1m_5547942757819306391v1m_1604606810798756051reply-intro">Am 2024-07-12 09:29, schrieb Barry:</p>
<blockquote style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div style="margin:0px;padding:0px;font-family:monospace"><br><br>
<blockquote style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">On 12 Jul 2024, at 08:19, <a href="mailto:t.schneider@disroot.org" rel="noreferrer noreferrer" target="_blank">t.schneider@disroot.org</a> wrote:<br><br>This means, one must ensure that these scheduled jobs run sequentially in this order:<br>monthly - weekly - daily</blockquote>
<br>Maybe you can set the time of day so that you get the sequencing.<br>Monthly at 01:00, weekly at 03:00 etc<br><br>Or you could encode these rules in the script that you run daily.<br><br>Barry</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote></div></div></div>