owsync: add file synchronization daemon - #29136
Open
pgaufillet wants to merge 1 commit into
Open
pgaufillet wants to merge 1 commit into
pgaufillet wants to merge 1 commit into
Conversation
This was referenced Apr 12, 2026
pgaufillet
marked this pull request as draft
April 13, 2026 08:30
pgaufillet
marked this pull request as ready for review
September 15, 2026 20:39
openwrt-ai
reviewed
Sep 16, 2026
openwrt-ai
left a comment
Collaborator
There was a problem hiding this comment.
Commit checks
- 69db67b "owsync: add file synchronization daemon" — body states
Dependencies: libjson-c (required), libopenssl (optional), butDEPENDSalso pulls inrpcd; list it there too.
Generated by Claude Code
pgaufillet
added a commit
to pgaufillet/openwrt-ha-feed
that referenced
this pull request
Sep 20, 2026
The status handler read UCI from the wrong section/option
('config'/'sync_dir' instead of the shipped 'general'/'dir') and
defaulted the DB path to /var/lib/owsync, a tmpfs path never created by
the package. On ha-cluster nodes it also never found the runtime config,
so peer_count and encryption were always 0/false.
Resolve the config from the running daemon's -c/--config argument, read
the correct UCI section/option, and fix the peer_count fallback. Add
field-level assertions to the T01 status test.
Reported in the openwrt/packages#29136 review.
pgaufillet
added a commit
to pgaufillet/openwrt-ha-feed
that referenced
this pull request
Sep 20, 2026
A conffiles directory entry needs a trailing slash, otherwise opkg treats it as a plain file and does not preserve the directory contents. Reported in the openwrt/packages#29136 review.
pgaufillet
force-pushed
the
add-owsync
branch
from
September 20, 2026 21:04
69db67b to
a9eaaa4
Compare
openwrt-ai
reviewed
Sep 21, 2026
Add owsync, a lightweight bidirectional file synchronization daemon designed for multi-router OpenWrt deployments. Features: - Multi-master bidirectional sync over TCP - AES-256-GCM encryption (optional, menuconfig toggle) - SHA-256 content-based change detection - Tombstone-based deletion tracking across reboots - Atomic file operations (write-to-tmp + rename) - Clock skew protection (aborts if >60s drift) - Glob patterns for include/exclude filtering Primary use case: synchronizing /etc/config between redundant routers. Also useful for multi-AP deployments, fleet management, or any scenario where config files must stay in sync. No dependency on other HA packages — can be merged independently. Dependencies: rpcd (required), libjson-c (required), libopenssl (optional) Binary size: ~150KB stripped, ~2MB RAM Source: https://github.com/pgaufillet/owsync (v1.3.0) Tested on: OpenWrt 24.10 and 25.12 (x86_64 + filogic), production. Signed-off-by: Pierre Gaufillet <pierre.gaufillet@bergamote.eu>
pgaufillet
force-pushed
the
add-owsync
branch
from
September 22, 2026 13:47
a9eaaa4 to
3367c7b
Compare
openwrt-ai
reviewed
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📦 Package Details
Maintainer: @pgaufillet
Description:
Add owsync, a lightweight bidirectional file synchronization daemon designed for multi-router OpenWrt deployments.
Features:
Primary use case: synchronizing /etc/config between redundant routers. Also useful for multi-AP deployments, fleet management, or any scenario where config files must stay in sync.
No dependency on other HA packages — can be merged independently.
Part of the OpenWrt HA cluster proposal:
Source: https://github.com/pgaufillet/owsync (v1.3.0)
🧪 Run Testing Details
✅ Formalities