<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Could you please explain the idea behind this proposal?</p>
<div id="signature"></div>
<p><br /></p>
<p id="reply-intro">Am 2024-07-12 11:53, schrieb Barry Scott:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br id="v1lineBreakAtBeginningOfMessage" />
<div><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div>On 12 Jul 2024, at 09:50, t.schneider@disroot.org wrote:</div>
<br class="v1Apple-interchange-newline" />
<div>
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p><span style="color: #333333; font-size: 13px; font-family: sans-serif; background-color: #fcfdfe;">There's no script (or whatsoever) in this backup functionality.</span><br style="color: #333333; font-size: 13px; font-family: sans-serif; background-color: #fcfdfe;" /><span style="color: #333333; font-size: 13px; font-family: sans-serif; background-color: #fcfdfe;">It's only<span> </span></span><a style="color: #0077bb; font-size: 13px; font-family: sans-serif; font-weight: bold; background-color: #fcfdfe;" href="https://wiki.archlinux.org/title/Rsnapshot" target="_blank" rel="noopener noreferrer">rsnapshot</a><span style="color: #333333; font-size: 13px; font-family: sans-serif; background-color: #fcfdfe;"><span> (https://wiki.archlinux.org/title/Rsnapshot) </span>and<span> </span></span><a style="color: #0077bb; font-size: 13px; font-family: sans-serif; font-weight: bold; background-color: #fcfdfe;" href="https://wiki.archlinux.org/title/Systemd/Timers" target="_blank" rel="noopener noreferrer">systemd-timer</a><span style="color: #333333; font-size: 13px; font-family: sans-serif; background-color: #fcfdfe;"><span> </span>involved.</span></p>
</div>
</div>
</blockquote>
<div> </div>
You can change the ExecStart= to use flock, see man flock for details.</div>
<div> </div>
<div>Off the top of my head something like:</div>
<div>ExecStart=flock --exclusive mylock rsnapshot</div>
<div> </div>
<div>Add in full paths to make it robust.</div>
<div> </div>
<div>Barry</div>
<div> </div>
<div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div>
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<div id="v1signature"></div>
<p><br /></p>
<p id="v1reply-intro">Am 2024-07-12 10:35, schrieb Barry Scott:</p>
<blockquote style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0;">
<div id="v1replybody1">
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br id="v1v1lineBreakAtBeginningOfMessage" />
<div><br />
<blockquote style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0;">
<div>On 12 Jul 2024, at 08:34, t.schneider@disroot.org wrote:</div>
<br class="v1v1Apple-interchange-newline" />
<div>
<p style="caret-color: #000000; font-family: Verdana, Geneva, sans-serif; font-size: 13.333333px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Setting the time of day requires detailed knowledge about the runtime of each job.</p>
<p style="caret-color: #000000; font-family: Verdana, Geneva, sans-serif; font-size: 13.333333px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">But this forecast is not accurate and this means any setting could result in same error.</p>
<div id="v1v1signature" style="caret-color: #000000; font-family: Verdana, Geneva, sans-serif; font-size: 13.333333px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"></div>
</div>
</blockquote>
</div>
<div>Agreed that is a problem with this approach.</div>
<div> </div>
<div>Or you have the code that locks wait for the lock to be freed does that help?</div>
<div>Are you using flock in the script, then its a easy change.</div>
<div> </div>
<div>You still cannot ensure the order, but you can ensure that they will all run sequentially.</div>
<div> </div>
<div>Personally I encode the rules for my incremental vs. full backup into my hourly backups script.</div>
<div>So I only have one timer.</div>
<div> </div>
<div>Barry</div>
<div> </div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</body></html>