Hi
On Sun, 05 Mar 2023 07:45:16 -0800 Robin Lee Powell via rsync wrote:
> Oh, yeah, I missed that part. Yeah, don't do that; it's easy to add
> a lock file to a shell script.
Not so easy IMO to do that properly. Use the flock command if your system
provides it.
That said, using a systemd service (resp timer) for interactive (resp
batch/cron) use:
- gives you that locking for free
- enforce using the same execution context in both cases (ex: the Unix
environment, the locale ...)
--
francis
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html