What it does
A small daemon for Proxmox or Debian: watch an SMB-mounted inbox, wait until each upload finishes, then move or copy the file into the right destination folder by extension, glob, or regex.
Features
- Polls the inbox (more reliable than inotify over CIFS).
- Waits until a file’s size is stable before moving it, so slow uploads are not cut off.
- First matching route wins; put a catch-all default last.
- Remembers processed files in a local state file so a restart does not re-move everything.
See it in action
Simulated A drop folder on a home router or Proxmox box, with a made-up invoice file.
- 1
Inbox
A file lands in /mnt/drop/Invoice-1042.pdf over SMB.
- 2
Wait
The daemon watches size and mtime until the upload is finished, so a half-written file is not moved.
- 3
Match
Rule: *.pdf → /srv/homes/office/invoices/. First matching rule wins.
- 4
Route
The file is moved (or copied, if you configured that) and the result is logged.
Set it up
Copy the folder to the host or an LXC, install, then edit the example config and a root-only credentials file. Example paths and hostnames are placeholders.
sudo ./install.sh
sudo nano /etc/smb-home-router/config.yaml
sudo nano /etc/smb-home-router/credentials # username= / password=
sudo chmod 600 /etc/smb-home-router/credentials
sudo systemctl start smb-home-mount
sudo systemctl start smb-home-router
sudo journalctl -u smb-home-router -fFull instructions live in the repository README.
Security
- Never commit the credentials file or a live
config.yaml. Keep credentials at mode 600. - Run the service as a dedicated user with access only to the inbox and destination trees.
- Anyone who can write to the inbox can place files in the destinations you configured.
- Use SMB3 and a unique share account, not a personal login, when the share is reachable from other networks.
Report vulnerabilities to Hello@Braddcorp.com, and read the full SECURITY.md for the threat model and operator hygiene.
Known limitations
No malware or secret scanning
The router only matches names and extensions.
Polling can lag
A very busy drop folder will be drained at the poll interval, not instantly.
Pre-1.0
Only the main branch is supported.
Changelog
No tagged releases yet. The project is pre-1.0 and only main is supported, so this is the commit history.
Commits
- b3fffd2Genericize example route, add MIT license and SECURITY.md (#1)
- 4145c6aAdd Proxmox SMB home router scripts and systemd units.
Generated at build time from 2 commits on main (b3fffd2) on 2026-12-06 UTC. Dates are UTC. No requests to GitHub happen when you view this page.
License
MIT, copyright BraddCorp. See LICENSE. Contributions and forks are welcome on GitHub.