Skip to content

Per folder "pause sync" toggle #215

Closed

Description

@Nutomic

When sync is paused, no data should be transmitted.

There should also be a Rest API for this (pause and resume).
#192

Edit: I think there should also a -pause command line flag to launch in paused mode (and/or remember the state on shutdown).

Activity

  1. calmh commented on May 19, 2014

    @calmh
    Member

    Similar to #183

  2. calmh commented on Jun 16, 2014

    @calmh
    Member

    What's the goal here - why do we want to run at all when paused, as opposed to stop? Some data will need to be sent anyway, at least ping replies/responses...

  3. Nutomic commented on Jun 17, 2014

    @Nutomic
    ContributorAuthor

    When paused, no data should be sent at all.

    The way I see it, this is really an issue of user experience (ux).

    Of course we can use shutdown and then start again to do a pause, but that has many problems:

    • no GUI available (desktop) or completely crippled GUI (Android)
    • may require ssh access (remote device) or root (syncthing running as service)
    • can't detect any file changes

    On the other hand, pause gives us:

    • consistent UI (no need to go through console)
    • full (local) functionality

    All in all, the question to me is why not implement it? It should be a relatively minor change imo (just close all ports except for the web GUI port).

  4. Nutomic commented on Jun 17, 2014

    @Nutomic
    ContributorAuthor

    It's useful whenever you don't want to transfer any data, eg:

    • data transfer would choke your internet connection
    • limited data volume
    • limited battery
    • don't want to have your hard drive spinning (only if it also pauses the scanner or if inotify is implemented)

    Besides, btsync also has this feature, so I think people would expect it to be there.

  5. calmh commented on Jun 17, 2014

    @calmh
    Member

    I understand that it might be useful to not do any syncthing in certain circumstances. But how is it useful to keep syncthing running then, when it's explicitly forbidden from doing anything at all?

  6. calmh commented on Jun 17, 2014

    @calmh
    Member

    As I see the "pause sync" feature (that this issue is for), it would;

    1. Be per repo, i.e. not global (although you could pause all repos one by one)
    2. Prevent scanning, i.e. when paused we do not scan for local changes
    3. Prevent pulling, i.e. when paused we do not try to get outdated files in sync
    4. Not affect connections, i.e. we still connect and attempt to stay connected to other nodes (this includes sending periodic ping messages).
    5. Not affect incoming data, i.e. we don't try to stop other nodes from sending us index updates

    If numbers 4 and 5 are an issue I suggest simply shutting down syncthing. If we're not scanning for changes, not pulling new files, not connecting to other nodes and not responding to the network, then there's simply no reason to exist in RAM. :)

  7. Nutomic commented on Jun 17, 2014

    @Nutomic
    ContributorAuthor
    1. fine by me
    2. sure
    3. of course
    4. this seems pretty bad, as it will both consume data and power. Do you have any estimates how frequent requests are made, and how much data is transfered?
    5. not sure about this (but this seems closely related to 4, as we can't receive data if connections were disabled) Also depends on the data usage here.

    So, I think it would be fine if we had a ping every minute (or something like that), but not if we might transfer multiple MB per minute (I'm not sure where the line between acceptable/inacceptable would be, but mobile data contracts are often limited to few hundred MB/month).

  8. 101100 commented on Jun 18, 2014

    @101100

    To me, pause would mean "don't send files" and would be used when you want to reduce the traffic used by Syncthing or to force one repo to sync first. Can the file updates and index changes be separated, or are those the same thing? If they could keep in touch to know that there are 24 files that need updating, but not making those changes, that would be optimal in my mind.

  9. Nutomic commented on Jul 4, 2014

    @Nutomic
    ContributorAuthor

    @calmh, what's your word on this? If you won't implement it, this should be closed imo.

    Also, maybe we could do two "paused" states for syncthing-android, giving use three total sync states:

    • active: The current behaviour.
    • paused: Syncthing is running, keeping/searching node connections, but not syncing. This would also be useful to save bandwidth on PCs.
    • shutdown: Nothing transfered, no GUI/API available.
  10. calmh commented on Jul 4, 2014

    @calmh
    Member

    It's one among many feature requests.

  11. Nutomic commented on Jul 4, 2014

    @Nutomic
    ContributorAuthor

    Alright, so I'll just implement shutdown first.

  12. reopened this on Sep 29, 2014
  13. AudriusButkevicius commented on Sep 29, 2014

    @AudriusButkevicius
    Member

    Why reopened?

  14. 32 remaining items

  15. unlocked this conversation on Jan 1, 2016
  16. added this to the milestone on Jan 1, 2016
  17. mrbrahman commented on May 19, 2016

    @mrbrahman

    If there is vote for the "pause per folder" feature, I would do a +1 👍

    I see a huge benefit of this feature especially for mobile devices, where we may want to sync some lightweight folders over the data connection, and keep the rest for WiFi or WiFi + charging.

  18. dcarosone commented on May 20, 2016

    @dcarosone
  19. AudriusButkevicius commented on May 20, 2016

    @AudriusButkevicius
    Member

    Please use the emote buttons, otherwise we'll be forced to lock conversations on the issue due to +1 spam.

  20. added 3 commits that reference this issue on Aug 16, 2016
    61949e6
    4842840
    4df5c77
  21. added a commit that references this issue on Sep 8, 2016
    bb9c172
  22. added a commit that references this issue on Nov 25, 2016
    d017884
  23. added a commit that references this issue on Dec 18, 2016
    7d6ef90
  24. added a commit that references this issue on Aug 20, 2017
    6914f8e
  25. added
    frozen-due-to-age
    on Dec 22, 2017
  26. locked and limited conversation to collaborators on Dec 22, 2017
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

    enhancementfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions