Re: Trying to diagnose incomplete file transfer

"Francis.Montagnac--- via rsync" <[email protected]>
Newsgroups gmane.network.rsync.general
Message-ID <4166341.1678204574@kermit>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.