beakerbrowser / beaker

An experimental peer-to-peer Web browser
https://beakerbrowser.com/
MIT License
6.75k stars 547 forks source link

Multi-device support #1597

Open metanomial opened 4 years ago

metanomial commented 4 years ago

The Problem User profiles cannot be reused across devices. Single-writer archives presents a challenge.

The Solution Users can create a master profile. Then during profile setup on a new device, users are given the option to mount that master profile to a new local profile.

bndw commented 4 years ago

Is there currently anyway to "migrate" my profile from one computer to another, even without multi-device support, or do I have to start over? I wasn't able to find any information on this in the docs.

pfrazee commented 4 years ago

@bndw You can but there's some risk. You need to move (not copy) your data dirs between the two machines. (This is the ~/.hyperdrive folder and the user data dir, which has a path you can find in beaker's settings view.)

The reason you have to move is that Hyperdrive uses an append-only log internally. If you write to a Hyperdrive from more than one device, you can issue conflicting writes that will cause your drive to fail sync. We're currently discussing how to resolve this kind of thing -- it's non-trivial but I think we'll find a solution.