Manually add files

Hi all,

Suppose I have two machines A and B, I add a new file on A, but the file is very large, so I want to copy it manually in B.

Question 1: is the following procedure correct?

  1. open A:8384 and pause B
  2. add files to A
  3. add files to B manually, and hit “rescan”
  4. unpause B from A

Question 2: if A is “send only” and B is “receive only” is there any difference? (I would assume no).

thanks MH

I suspect you can’t add files to a receive only folder.

It will end up saying it’s a local change, even if it’s the same content, because syncthing has no record of creating that file.

Question 1: It’s not clear what you want to accomplish. Just to keep Syncthing working, you don’t need to do anything special when copying a file over by other means than Syncthing.

Question 2: Syncthing will resolve that: When it sees that the file contents are the same, it removes the flag marking the change as locally changed (also changing the version vector accordingly).

  1. Yes, I know that Syncthing could in theory keep on running, however I want to give B time to rescan the folder (otherwise, I think, it may happen that it starts redownloading stuff before figuring out that it’s already there). That’s why I thought about pausing B (from A) But as I said, I’m not sure it’s necessary.

  2. I just tried and I confirm empirically that it works. I have two machines A and B linked by a very slow connection, and a very large update happened on A. however the files were also present somewhere in the same LAN where B is, so we did a manual copy. Syncthing initially marked everything as a local change, but when we unpaused it, it synced very quickly (so it’s just impossible it downloaded anything).

many thanks for the support.

  1. Actually I wanted to say that it doesn’t happen, but rechecking it looks like it might indeed start downloading and only after finishing it will realize that the file on disk is already there. That should probably be changed.

I suppose in my case it didn’t happen because of the pause, is this right?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.