A lightweight, secure, LAN-based file sync tool β built in Python over a weekend.
SyncBox is a CLI tool that syncs files and deletions in real-time between a master device and one or more worker devices over LAN using sockets and file system watchers.
It mimics the core functionality of Dropbox β but for your local network, without the cloud.
| Feature | Status | Description |
|---|---|---|
| π LAN-based file transfer | β | TCP/IP over local network |
| π Watch folder for changes | β | Uses watchdog to detect file events |
| π Token-based auth | β | One-line security to block unknown workers |
| π₯ CLI-based config | β | Simple argparse usage |
| π Real-time sync | β | Syncs new & updated files instantly |
| β File deletion sync | β | Deletes removed files on all devices |
| π§Ύ Minimal logging output | β | Clear CLI messages |
-
python environment
-
pip install watchdog
master.py -> Master file
worker.py -> Worker file
sync_master -> folder for master
sync_worker -> folder for worker
For master.py Run
python3 master.py --port 9999 --folder sync_master --token secret123
For worker.py Run
python3 worker.py --host 127.0.0.1 --port 9999 --token secret123 --folder sync_worker


