openSUSE / docserv

A server for building and publishing documentation with DAPS
https://opensuse.github.io/docserv/
GNU General Public License v3.0
4 stars 3 forks source link

ds2: introduce an rsync locking mechanism #207

Open ghost opened 5 years ago

ghost commented 5 years ago

Sven did the following for backup_dir and publication target:

After much musing about how that backup dir is in actuality not really reflecting any kind of real backup state from me, Eli reworked the way we rsync a bit:

Imo that idea is still a good one in general:

However, it does occasionally lead to some chaos when multiple docset are building/syncing concurrently. In the end, everything should balance out, but:

ghost commented 5 years ago

We already have repolock.py which is probably pretty much exactly what we need, except we need it for locking the backup_path and not a git clone path.