syncrepo tweaks now that rsync has fixed the stale .~tmp~ issue
- Jul 29, 2021
-
-
Evangelos Foutras authored
This reflects the recent changes made to syncrepo.
-
Evangelos Foutras authored
Using a temporary directory outside of /srv/ftp was meant to protect against incomplete files from being synced by downstream mirrors. It does not achieve this to much effect though; each file gets uploaded to the temporary directory but then immediately moved under a .~tmp~ directory at its target location (.~tmp~ because of --delay-updates, otherwise the file would be renamed to its final path). The `--delay-updates` option by itself sufficiently protects against temp files being transferred to downstream mirrors; when used by the receiver, it automatically adds an exclude rule for ~.tmp~, behaving exactly like we want it to. As such, the `--temp-dir` option doesn't provide any further benefit and can be removed.
-
- Jul 28, 2021
-
-
Evangelos Foutras authored
The workaround can be skipped/removed when using rsync newer than 3.2.3.
-
Evangelos Foutras authored
- Replace --delete-after with more efficient --delete-delay. - Move "-p" together with the other short options. - Remove reference to empty ${VERBOSE} variable.
-
Evangelos Foutras authored
This reverts commit 75f9ca3c. This should be fixed in rsync versions newer than 3.2.3. In Arch the fix has been shipped in the rsync 3.2.3-4 package, which our own mirrors now have been updated to. [1] https://github.com/WayneD/rsync/issues/192
-