Be tolerant of moves, rename, and copies, without 'net transfer, based on checksums

Ok ok ok, now I understand. No problem but if too many files maybe the download could before the complete scan if done. Automatically, not a user choice.

Thanks a lot !

Hello, would it help to pause synchronization before moving or renaming many files and then resume synchronization only after the new situation is fully indexed ?

Potentially, but pausing the device not the folder. Still, indexes are sent in the order they are scanned, so itā€™s still not guaranteed. There are some features that try to make sure this works better, but I think itā€™s still not guaranteed.

Why is it rescanning then?

Is there a zero-complication method from the cli simply using a direct call to syncthing that would enable riskless moves?

i.e.

syncthing cli mv

or something?

Would this be possible?

Everything else sounds like tricks and hopeful thinking but basically unsafe (network or huge scans).

1 Like

No, there is nothing like that, and I donā€™t think it makes sense to add that.

If you are running some special command to move files you might as well ssh host mv file

What about a check box in settings? For users who donā€™t care about speed, and can afford to let the entire scan finish before downloading starts, I mean.

This is an ancient long thread at this point, you need to be more clear what the checkbox is for.

A checkbox to change the default behaviour. Let the entire scan finish before starting the file transfer process. To avoid this:

If there are a thousand files to scan, information about the first 100 might be sent out while weā€™re still scanning the remaining 900, and those 100 start downloading while weā€™re still scanning ā€“ before weā€™ve come to the part where we notice that 1000 files were also removed and this was all a rename.

A scan can finish in the middle of you moving a thousand files though, thereā€™s no indication to Syncthing when the user is ā€œdoneā€ doing something, other than maybe waiting several minutes after a change before acting on it.

Oh. Can Syncthing not detect that there are changes being made to watched folders, thus resetting the ā€˜watchā€™ timer back to the 1 min default, or whatever the user has set?

Syncthing does precisely that. The timers are in the config (ā€œfs watcher delayā€ under the advanced folder settings). Thereā€™s even a specific multiplier for deletes, to add an extra delay when a delete is detected to make sure we find the possible destination it was moved to. :slight_smile:

1 Like

Oh. Then I donā€™t understand what it is about the OPā€™s described scenario that makes Syncthing start transfers despite an ongoing scan.

From whatā€™s been stated here, there is a pretty solid coverage of different possibilities.

Does OP have extremely large files, like several GiB in size? Iā€™m assuming they might take longer than the default 1 min to be processed?

Scroll up and youā€™ll know everything we know, from the original conversation back in 2019. Asking follow up questions about it today is unlikely to bring anything new to light.

1 Like