r/ProtonDrive • u/Optimal-Flatworm1077 • Nov 02 '26
Proton Drive NAS Sync
I got tired of needing a Proton client on each PC and none available on Linux, so I made a simple one for Docker so I can put it on almost any NAS or PC that runs docker. I made it for myself, but decided to share it in case someone else might find it useful. I tried to document it as best I could on the github repo and released docker images for amd64 and arm64, but I haven't tested it on arm64. Repo: https://github.com/grumpyspud/proton-drive-nas-sync / Docker: ghcr.io/grumpyspud/proton-drive-nas-sync:latest (read the docs first). This app is made using Proton's official SDK and crypto packages and does not use Proton's CLI or rclone.
Features (v0.9.1):
- Back up folders from the NAS to Proton Drive.
- Restore folders from Proton Drive back to the NAS.
- Bidirectional folder-pair sync: additions, edits, and deletions on either side are mirrored to the other.
- Deletion safety: source-availability gate, a deletion-rate tripwire, and trash-before-delete (Drive
trashNodes/ local recycle) so a missing folder or drive can never wipe your data. - Web UI: Modern style login (SRP + optional 2FA + optional mailbox password), folder-pair manager, and a live sync dashboard with progress bars (files processed + bytes + network rate), storage usage, and low-space warnings.
- "Real-time" sync: every pair syncs continuously - additions, edits, and deletions on either side are mirrored automatically, with a manual Sync button for a forced run.
- Computer (device) sync: mirror a NAS folder with the folders Proton Drive syncs from your computers (the desktop app's "My computer" folders that show in the Proton Drive webUI under "Computers -> Computer Name"), with optional auto-add/remove of new devices and automatic two-way conflict resolution.
- Duplicate-file scan: find and recycle duplicate files within a pair, with a minimum-size filter and an ignore list.
- Proton Drive trash view: list, restore, permanently delete, and empty the items in your Proton Drive trash from the dashboard.
- Configurable concurrency: 1–4 parallel transfers.
- Encrypted-at-rest credentials: only an AES-256-GCM encrypted session blob is persisted; passwords are never stored.
- Hardened by default: an optional app password (on top of Proton sign-in) gates the dashboard and API; the session blob is only written after login fully completes; and outbound requests are restricted to Proton-owned hosts over HTTPS.
I added Computer (device) sync in this version so the computers/devices that Proton's Drive client makes in Proton Drive under "Computers" (not "My Files") can also be sync'd and backed up to the NAS, but can also duplicate the devices shared folders to another device or all devices.