Skip to content

Drain folders - folders which try to get files off the device #10905

Description

@wrouesnel

Feature description

A new folder type - Drain.

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.

Activity

  1. added
    enhancement
    needs-triage
    on Oct 3, 2026
  2. added theissue type on Oct 3, 2026
  3. atrent commented on Oct 6, 2026

    @atrent

    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)

  4. atrent commented on Oct 6, 2026

    @atrent

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-triage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions