You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drain folders - folders which try to get files off the device #10905
Drain folders would be set with a target seeding level for the cluster. A drain folder syncs files to the cluster like a send-only folder until they hit a target seeding level - i.e. number of replicas on other devices. Once the file is known to be on other devices, the drain folder removes it locally.
Problem or use case
When using syncthing on a phone, what you want is to keep a certain number of the most recent photos and generally not fill the entire phone.
Currently there's no real sensible way to do this in syncthing - you have to sync everything in send/receive mode, so the phone content will be removed when you clean up the remote folder and organize it.
It's manual and error prone.
A drain folder type would make this automatic and not require intervention: with seed levels and threshold settings, content can be continuously added to the source folder and drained away to the target as space runs out.
This provides a practical continuous backup for the common use case of a field device producing a stream of content headed to a server.
Alternatives or workarounds
Currently in a lot of cases you'd prefer to be send-only, you wind up using 2-way sync or the ignore-deletes function. This is most common for when you have a device like a phone in the cluster, with limited space, syncing it's camera directories to a server or desktop.
I would use it for backups (Neobackup scheduled backups) since backups are often very large and they are of no use on the phone itself, they should be sent and locally forgotten (git-annex like)
at the moment I have two folders on the server: Neobackups-synced (send&receive) and Neobackup-notsynced (unknown to syncthing) with a small script running periodically that moves everything from synced to notsynced
Activity
atrent commentedon Oct 6, 2026
I would use it for backups (Neobackup scheduled backups) since backups are often very large and they are of no use on the phone itself, they should be sent and locally forgotten (git-annex like)
atrent commentedon Oct 6, 2026
at the moment I have two folders on the server: Neobackups-synced (send&receive) and Neobackup-notsynced (unknown to syncthing) with a small script running periodically that moves everything from synced to notsynced