How to re-sync old folders

I have been using Syncthing on a Raspberry Pi for a few years without issue. Recently, I rebuilt the machine from scratch to move to Raspios bookworm. re-installation of Syncthing went fine but ran into a problem when I added a folder to Syncthing. The status I got is “out of sync” with other machines. I don’t want to delete all the files just so I can transfer them back from other machines. Is there a better way?

As I understand it, here’s what’s happening:

  1. You are installing Syncthing on what appears to be a new device, for Syncthing.

  2. You want to put this device, with the same shared Folders and the same files therein, back into your previously-used Syncthing cluster.

If that’s right, what will happen is that your local Syncthing (on the “new” device) will hash all the files and compare them to the global model. If the files are the same, all that will happen is that your “new” Syncthing instance will discover it has everything it needs to be in sync with the global model.

Based on my understanding of what you’re trying to do, you should not need to delete the files to re-sync them. The devices should discover that they are already in sync.

For each file, I got:

syncing: shortcut file (setting permissions): chmod </filepath/filenmae> operation not permitted

This makes me think that the user running the Syncthing process doesn’t have rights to the files you’re wanting to sync.

1 Like

Thanks, I resolved the issue by chown the folders to the user I am running Syncthing.

1 Like

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