Multiple sync servers

Hey!

I have a custom sync server I want to use. I was wondering if it would be technically possible to support multiple sync servers, including the official one.

The pain point would probably be how to decide which collections to keep and which to overwrite. I think this can be solved by extending the custom sync server screen to allow the user to select a “primary sync server”. This server behaves like it already does right now: it asks the user which way to sync. The other servers are push-only. Any sync action to them will overwrite what is locally available.

If the user wants, they can then toggle any of their registered sync servers to be the primary one.

I did not really look too much into the code base. But the code responsible for syncing already seems to be able to do exactly that. One just has to iterate over all sync servers and only prompt the user on the primary one, defaulting for all others to push-only.

If someone with more code base knowledge can chime in, that would be great! I am also happy to work on this, if such a feature would then be merged!

Cheers~

1 Like