Skip to content
file-bricksPublic

Latest commit

 

History

117 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProSync Banner

ProSync

English · Deutsch · Español · User Guide

Intelligent local backup synchronization with automated SQLite WAL database protection.

License: MIT Attribution: NOTICE Contributing: Guidelines Version Platform: Windows | Linux | macOS Python: 3.10 | 3.11 | 3.12 | 3.13 Tests: 231 passed Privacy: 100% Local | Zero-Egress Security: RunAsInvoker Security SLA: 48h / 5d Level 1 SBOM: Verified Third-Party: Audited Ecosystem: file-bricks Umbrella: open-bricks Context: llms.txt Verified: 2026-10-08

Note

Disambiguation: file-bricks/ProSync is an open-source Windows desktop and background application built with Python (PySide6) for local file/folder synchronization with automated SQLite WAL database protection. It is completely independent of enterprise database replication products (e.g., Tibero ProSync) or third-party macOS utilities.

Machine-readable index: Specification available at llms.txt. Last checked: 2026-10-08.


Quick Navigation

  1. Features & Core Capabilities
  2. System Architecture & Data Flow
  3. Target Personas & Discoverability
  4. Comparative Matrix vs. Alternatives
  5. Dual Mermaid Diagrams
  6. Governance & Runtime Invariants
  7. Synchronization Modes & Semantics
  8. SQLite WAL Database Protection
  9. Visual Showcase & Feature Gallery
  10. Installation & Dependencies
  11. CLI & Headless Automation
  12. Scheduled Backups & IANA Timezones
  13. Portable Web/PWA Companion
  14. ProSyncReader & ProFiler Search
  15. Windows Store & MSIX Staging
  16. Testing & Quality Checks
  17. Third-Party Licenses & Transparency
  18. Security Policy & Sibling Ecosystem

1. Features & Core Capabilities

  • Folder Synchronization: Flexible one-way, two-way, update, mirror, and index-only synchronization.
  • File Synchronization: Dedicated single-file backup connections for mission-critical assets.
  • Automatic Database Detection: Proactively identifies SQLite (.db, .sqlite, .sqlite3, .db3) and MS Access databases.
  • WAL Checkpoint Guard: Safely executes PRAGMA wal_checkpoint(TRUNCATE) before copying active SQLite databases, aborting fail-closed on lock contention (SQLITE_BUSY) to prevent corruption.
  • System Tray Integration: Runs unobtrusively in the background on Windows with auto-start and tray menu controls.
  • Scheduled Backups & Daily Triggers: Configurable interval timers or explicit IANA-timezone-aware daily local execution across DST transitions.
  • Batch Sync Queue: Select and launch multiple connections sequentially in one coordinated batch with granular progress feedback.
  • Atomic File Operations: Staged temporary writes (.tmp) prior to atomic replacement, preventing partial or corrupted targets during power loss.
  • Database Indexing & ProFiler Companion: Optional full-text indexing and instant search via the companion reader.
  • Portable Web/PWA Companion: Exports redacted prosync-profile-v1.json for offline mobile and browser inspection.
  • Cross-Platform Ready: Standardized 8-point platform smoke suites for Linux and macOS.
  • Windows Store Staged: Complete MSIX packaging, AppxManifest declarations, and tile asset sets (Policy 10.1.3 compliant).

2. System Architecture & Data Flow

ProSync separates user interaction, synchronization scheduling, database integrity validation, and storage targets into modular decoupled layers visualized via the ASCII Four-View Architectural Topology:

+===================================================================================================+
|                                    PROSYNC ARCHITECTURAL TOPOLOGY                                 |
|                                4-VIEW DETERMINISTIC SYNC & STORAGE GATE                           |
+===================================================================================================+
| [VIEW 1: CALLER RUNTIMES & USER INTERFACES]                                                       |
|  +------------------------------------+  +---------------------------------+  +-----------------+  |
|  | PySide6 Desktop GUI (Main Window)  |  | System Tray Background Monitor  |  | Headless CLI    |  |
|  | - Connection Manager & Progress UI |  | - Native Auto-Start & Tray Menu |  | - --run / --all |  |
|  +------------------------------------+  +---------------------------------+  +-----------------+  |
|  +------------------------------------+  +---------------------------------+                       |
|  | ProSyncReader Search Companion     |  | Offline Web/PWA Companion       |                       |
|  | - Fast Full-Text & ProFiler Bridge |  | - Redacted prosync-profile-v1   |                       |
|  +------------------------------------+  +---------------------------------+                       |
+===================================================================================================+
                                                  |
                                                  v (Invocations, Timers, Triggers)
+===================================================================================================+
| [VIEW 2: SCHEDULER, BATCH ORCHESTRATION & DISPATCH CORE]                                          |
|  +---------------------------------------------------------------------------------------------+  |
|  | ConnectionScheduler & IANA Timezone Engine (DST-Safe Wall-Time, Weekday Range Filtering)     |  |
|  | Batch Sync Queue (Sequential Multi-Connection Execution, Granular Worker Signals)          |  |
|  | Instance Lock Coordinator (Single-Instance Mutex, Safe Process PID Guards)                  |  |
|  | ConfigManager (Atomic JSON Writers, Dynamic Reloading, Profile Export)                       |  |
|  +---------------------------------------------------------------------------------------------+  |
+===================================================================================================+
                                                  |
                                                  v (Batch Dispatch & Sync Signals)
+===================================================================================================+
| [VIEW 3: DATA INTEGRITY & SYNC WORKER ENGINE]                                                     |
|  +------------------------------------+  +---------------------------------+  +-----------------+  |
|  | SQLite WAL Checkpoint Guard        |  | Lock Contention Sentinel        |  | Atomic Staging  |  |
|  | - PRAGMA wal_checkpoint(TRUNCATE)  |  | - SQLITE_BUSY Fail-Closed Abort |  | - .tmp Isolation|  |
|  +------------------------------------+  +---------------------------------+  +-----------------+  |
|  +---------------------------------------------------------------------------------------------+  |
|  | 5 Synchronization Modes: Mirror | Update | Two-Way | One-Way | Index-Only                   |  |
|  | Atomic File Copier (_atomic_copy2, Permission Resilience, Read-Only Target Handling)        |  |
|  | Collision-Resistant Atomic Writers (prosync_utils.atomic_write_json / atomic_write_text)   |  |
|  +---------------------------------------------------------------------------------------------+  |
+===================================================================================================+
                                                  |
                                                  v (Verified Atomic Commits)
+===================================================================================================+
| [VIEW 4: AIR-GAP DEFENSE, RUNASINVOKER ISOLATION & STORAGE TIERS]                                 |
|  +------------------------------------+  +---------------------------------+  +-----------------+  |
|  | Zero-Egress Air-Gap Boundary       |  | Unprivileged RunAsInvoker Mode  |  | Target Tiers    |  |
|  | - 100% Offline, Zero Telemetry     |  | - Zero UAC Elevation Requested  |  | - Local Drives  |  |
|  | - No Remote Analytics Brokers      |  | - User Profile Isolation        |  | - NAS / SMB UNC |  |
|  | - INV-LOCAL-01 Guaranteed          |  | - INV-RUNAS-02 Certified        |  | - Hardened SFTP |  |
|  +------------------------------------+  +---------------------------------+  +-----------------+  |
+===================================================================================================+

3. Target Personas & Discoverability

Target Personas

  • [PERSONA-01] Desktop Power Users & Windows Sysadmins:

    • Context: Automating regular backups of vital working directories, NAS shares, and external NVMe/USB drives.
    • Pain Point: Generic sync utilities either lack background tray operation, lack resilient scheduling, or corrupt open SQLite databases during live copies.
    • How ProSync Solves It: Unobtrusive system-tray automation, IANA-timezone-aware daily triggers, batch queues, and atomic folder synchronization with fail-closed safety.
  • [PERSONA-02] SQLite & Database Application Developers:

    • Context: Development and production desktop environments utilizing SQLite in WAL (Write-Ahead Logging) mode.
    • Pain Point: Standard copy tools copy active database files while WAL transactions are uncommitted, producing inconsistent, corrupt, or unusable backup copies.
    • How ProSync Solves It: Automated pre-sync SQLite WAL checkpointing (PRAGMA wal_checkpoint(TRUNCATE)), defensive lock contention detection (fail-closed on SQLITE_BUSY), and automated WAL auxiliary file exclusion (.db-wal, .db-shm).
  • [PERSONA-03] Privacy & Compliance Officers / DSGVO & Enterprise Auditors:

    • Context: Regulated industries, legal/medical records, and sensitive local file archives requiring strict confidentiality.
    • Pain Point: Cloud storage clients and commercial SaaS synchronization tools continuously exfiltrate telemetry, analytics, and metadata.
    • How ProSync Solves It: Uncompromising 100% Local-First & Zero-Egress architecture; zero external telemetry sockets; fully unprivileged user-mode execution (RunAsInvoker).
  • [PERSONA-04] Automation Engineers & Multi-Agent Framework Architects:

    • Context: Headless script execution, CI validation pipelines, batch scripts, and LLM-assisted toolchains.
    • Pain Point: Inflexible GUI-only tools that cannot be scripted without window managers or user clicks.
    • How ProSync Solves It: Full-featured headless CLI (--list, --run <id|name>, --all, --quiet), redacted portable profile export format (prosync-profile-v1.json), and comprehensive automated contract test suites.

High-Intent Search Queries

  • "python desktop backup synchronization tool"
  • "pyside6 file sync folder backup windows tray"
  • "sqlite wal database safe backup python"
  • "local-first file synchronization zero egress"
  • "offline two-way folder sync python"
  • "sqlite wal checkpoint backup automation"
  • "scheduled folder backup iana timezone python"
  • "sftp atomic upload backup desktop app"
  • "windows store msix backup sync utility"
  • "open source backup sync tool mit license"

4. Comparative Matrix vs. Alternatives

Technical Dimension / Invariant ProSync (file-bricks) FreeFileSync Robocopy / Rsync Syncthing Commercial Cloud SaaS Sync
INV-LOCAL-01 Local-First & Zero Egress 100% Local & Offline 100% Local 100% Local P2P Network Protocol Cloud Relay / Telemetry
INV-RUNAS-02 RunAsInvoker User Mode Strictly Unprivileged Native Installer OS Built-in User / Daemon System Service / Elevation
INV-WAL-03 SQLite WAL Checkpoint Guard Automated PRAGMA wal_checkpoint None (Raw Copy) None (Raw Copy) None (File Watcher) None (Locked File Error)
INV-INTEG-04 Atomic Staging & Replacement Staged .tmp Safe Replace Direct Stream Direct Stream Temp Staging Chunk Upload Staging
INV-SCHED-05 DST-Aware IANA Scheduling Built-in IANA Timezone Engine Windows Task Scheduler Task Scheduler / Cron Continuous Watcher Cloud Schedule / Poll
INV-PWA-06 Redacted Offline Companion Export prosync-profile-v1.json None None Web GUI (Localhost) Web Dashboard (Online)
INV-PLAT-07 Cross-Platform Smoke Parity Windows, Linux & macOS Matrix Windows, macOS, Linux OS-specific Go Cross-Platform Platform-specific Apps
INV-STORE-08 Windows Store / MSIX Staging AppxManifest & Policy 10.1.3 Standalone Setup None Chocolatey / Scoop Windows Store App
INV-DOCS-09 1:1 Bilingual Docs & LLM Index 18-Point EN/DE + llms.txt English Docs Man Pages / Docs English Docs Online Help Center
INV-SLA-10 Open Source Governance & SLA MIT License, 48h Response SLA GPL v3 OS Proprietary / GPL MPL 2.0 Proprietary Commercial

5. Dual Mermaid Diagrams

System Architecture Topology (flowchart TD)

flowchart TD
    subgraph Layer1 ["Layer 1: User Interface & Entry Points"]
        UI_GUI["PySide6 Desktop Window<br/>(Main Workspace & Connection Tree)"]
        UI_TRAY["Windows System Tray Launcher<br/>(Background Minimize & Status Indication)"]
        UI_CLI["Headless CLI Engine<br/>(--run, --list, --all, --quiet)"]
    end

    subgraph Layer2 ["Layer 2: Scheduling & Execution Orchestration"]
        SCHED["IANA Timezone Daily Scheduler<br/>(DST-Resilient Wall Time Evaluation)"]
        QUEUE["Batch Execution Queue<br/>(Sequential Multi-Connection Dispatcher)"]
        CONF["Configuration Store<br/>(ProSync_config.json with Runtime Lock)"]
    end

    subgraph Layer3 ["Layer 3: SQLite WAL Checkpoint & Integrity Engine"]
        WAL_GUARD["SQLite WAL Checkpoint Guard<br/>(PRAGMA wal_checkpoint(TRUNCATE))"]
        ATOMIC_COPY["Atomic File Transfer Engine<br/>(Staged .tmp Write with Safe Replacement)"]
        LOCK_CHECK["Lock Contention Sentinel<br/>(Fail-Closed Abort on SQLITE_BUSY)"]
    end

    subgraph Layer4 ["Layer 4: Storage Destinations & Adapters"]
        DEST_LOCAL["Local & Removable Disks<br/>(NTFS / exFAT / ReFS / Ext4 / APFS)"]
        DEST_NAS["Network Shares & UNC Paths<br/>(SMB / CIFS / NFS Shares)"]
        DEST_SFTP["Hardened SFTP Target<br/>(paramiko SSHv2 with Host Key TOFU)"]
    end

    subgraph Layer5 ["Layer 5: Offline Companion & Indexing"]
        EXP_PWA["Profile Redactor & JSON Exporter<br/>(prosync-profile-v1.json Without Secrets)"]
        APP_PWA["Offline PWA Web Companion<br/>(Static HTML5 / Web Worker / LocalStorage)"]
        SEARCH_PRO["ProSyncReader & ProFiler Hub<br/>(FTS5 SQLite Indexing & Document Preview)"]
    end

    UI_GUI --> QUEUE
    UI_TRAY --> SCHED
    UI_CLI --> QUEUE
    SCHED --> QUEUE
    CONF -.-> QUEUE

    QUEUE --> WAL_GUARD
    WAL_GUARD --> ATOMIC_COPY
    LOCK_CHECK -.->|"Guard Interrupt"| WAL_GUARD

    ATOMIC_COPY --> DEST_LOCAL
    ATOMIC_COPY --> DEST_NAS
    ATOMIC_COPY --> DEST_SFTP

    UI_GUI -.->|"Redacted Export"| EXP_PWA
    EXP_PWA --> APP_PWA
    DEST_LOCAL -.-> SEARCH_PRO
Loading

End-to-End Backup & WAL Checkpoint Lifecycle (sequenceDiagram)

sequenceDiagram
    autonumber
    participant U as User / Scheduler / CLI
    participant Q as Batch Queue Dispatcher
    participant W as Sync Worker Engine
    participant G as SQLite WAL Checkpoint Guard
    participant D as Target Storage (Disk / NAS / SFTP)
    participant E as Redacted Profile Exporter

    U->>Q: Trigger Synchronization (Manual / Schedule / CLI)
    Q->>W: Dispatch Active Connection Task
    alt SQLite Database Connection (.sqlite, .db, .sqlite3)
        W->>G: Execute PRAGMA wal_checkpoint(TRUNCATE)
        alt Checkpoint Succeeded (status = 0)
            G-->>W: Checkpoint Confirmed (WAL Flushed to Main DB)
            W->>D: Stream Main Database File (Atomic .tmp Staging)
            D-->>W: Atomic Rename & Transfer Complete
            W-->>Q: Task Succeeded (Status: OK)
        else Database Locked / Busy (SQLITE_BUSY)
            G-->>W: Checkpoint Contention Detected
            W-->>Q: Fail-Closed Abort (Prevent Corrupted Inconsistent Copy)
            Q-->>U: Alert: Backup Skipped Due to Active Lock
        end
    else Standard File / Directory Connection
        W->>D: Execute Sync Algorithm (mirror / update / two_way / one_way)
        D-->>W: Transfer Summary (copied, updated, deleted, errors)
        W-->>Q: Task Completed
    end
    opt Redacted PWA Profile Export
        U->>E: Request Profile Export (prosync-profile-v1.json)
        E-->>U: Generate Sanitized Profile (No Private Paths, No Secrets)
    end
Loading

6. Governance & Runtime Invariants

ProSync strictly enforces ten foundational governance and runtime invariants:

Invariant Title Enforcement & Description
INV-LOCAL-01 Local-First & Zero Egress Pure local runtime. Zero network sockets opened to telemetry, tracking, or analytics endpoints. Verified in tests/test_security_license_contract.py.
INV-RUNAS-02 Unprivileged RunAsInvoker Runs purely in unprivileged user space. Never prompts for UAC elevation or root credentials. Documented in SECURITY.md and pyproject.toml.
INV-WAL-03 SQLite WAL Crash Safety Automated PRAGMA wal_checkpoint(TRUNCATE) prior to copying active SQLite databases; aborts fail-closed on lock contention (SQLITE_BUSY).
INV-INTEG-04 Atomic File Copy Staging File writes stage to .tmp files before atomic replacement, guaranteeing target files are never left in a corrupted state.
INV-SCHED-05 DST-Aware Daily Scheduling Built-in IANA timezone engine calculates exact wall time, eliminating drift and catch-up storms during daylight saving time shifts.
INV-PWA-06 Redacted Companion Export Exported prosync-profile-v1.json strips absolute file paths, private server endpoints, passwords, and tokens for safe offline companion viewing.
INV-PLAT-07 Cross-Platform Smoke Parity 8-point smoke test suites for Linux and macOS verify system opener commands, offscreen UI lifecycles, and POSIX path safety.
INV-STORE-08 Windows Store & MSIX Staging Verified Desktop Bridge AppxManifest (Geiger.ProSync), Policy 10.1.3 compliant search keywords, and full tile icon suites.
INV-DOCS-09 1:1 Bilingual Documentation Exact reciprocal quick navigation parity across English (README.md) and German (README_de.md), synchronized with llms.txt.
INV-SLA-10 Open Source Governance & SLA Permissive MIT License, public issue triage, and committed 48-hour response / 5-day triage security SLA in SECURITY.md.

7. Synchronization Modes & Semantics

ProSync provides five deterministic synchronization modes to suit various backup and archival workflows:

Mode Semantic Behavior Primary Use Case
mirror Target is maintained as an exact replica of source (deleting orphaned target files) Full system & repository backups
update Transfers only newer and missing files from source to target (no target deletions) Incremental day-to-day backups
two_way Bidirectional synchronization resolving conflicts by newest timestamp Active sync between laptop and workstation
one_way Source files copied to target without ever deleting files from target Safe non-destructive archival
index_only Indexes metadata and file structure without moving payload bytes Cataloging & ProFiler search preparation

8. SQLite WAL Database Protection

ProSync proactively detects active SQLite database files and enforces crash-consistent protection mechanisms: