Trying to think of a way to do this without touching the server code, only modifying remotestorage.js. I think it’s just a matter of creating a function that clears all writeable data on the server and pushes client copies up:
- Server A is in the cloud and synchronized with Client 1 and 2
- Server B is on the local network in an unknown state
- Client 1 switches to Server B and chooses to clear any writeable data on the server and replace with the client copies
- Client 2 switches to Server B and chooses to syncronize as normal
- Client 1 and 2 should now be synchronized with Server B and can send changes across the local network