Trying to diagnose incomplete file transfer
Francis.Montagnac at inria.fr
Francis.Montagnac at inria.fr
Tue Mar 7 15:56:14 UTC 2023
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
More information about the rsync
mailing list