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
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
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).
Reacted by sisu4syncthing, Stanislav, Courtney van der Wal, Wulf Weich, Avamander, kevin-stuart, Brandon Hunter, Michael Jensen, Chris Kankiewicz, ELopes and 2 more
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...
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?
As I see the "pause sync" feature (that this issue is for), it would;
Be per repo, i.e. not global (although you could pause all repos one by one)
Prevent scanning, i.e. when paused we do not scan for local changes
Prevent pulling, i.e. when paused we do not try to get outdated files in sync
Not affect connections, i.e. we still connect and attempt to stay connected to other nodes (this includes sending periodic ping messages).
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. :)
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?
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).
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.
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.
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon May 19, 2014
Similar to #183
calmh commentedon Jun 16, 2014
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...
Nutomic commentedon Jun 17, 2014
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:
On the other hand, pause gives us:
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).
Nutomic commentedon Jun 17, 2014
It's useful whenever you don't want to transfer any data, eg:
Besides, btsync also has this feature, so I think people would expect it to be there.
calmh commentedon Jun 17, 2014
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?
calmh commentedon Jun 17, 2014
As I see the "pause sync" feature (that this issue is for), it would;
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. :)
Nutomic commentedon Jun 17, 2014
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).
101100 commentedon Jun 18, 2014
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.
Nutomic commentedon Jul 4, 2014
@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:
calmh commentedon Jul 4, 2014
It's one among many feature requests.
Nutomic commentedon Jul 4, 2014
Alright, so I'll just implement shutdown first.
AudriusButkevicius commentedon Sep 29, 2014
Why reopened?
32 remaining items
mrbrahman commentedon May 19, 2016
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.
dcarosone commentedon May 20, 2016
AudriusButkevicius commentedon May 20, 2016
Please use the emote buttons, otherwise we'll be forced to lock conversations on the issue due to +1 spam.
all: Add folder pause, make pauses optionally permanent (fixes syncth…
all: Add folder pause, make pauses optionally permanent (fixes syncth…
all: Add folder pause, make pauses optionally permanent (fixes syncth…
all: Add folder pause, make pauses optionally permanent (fixes syncth…
all: Add folder pause, make pauses optionally permanent (fixes syncth…
all: Add folder pause, make pauses optionally permanent (fixes syncth…
Start and stop folders (fixes syncthing#215)