ssbc / patchwork

A decentralized messaging and sharing app built on top of Secure Scuttlebutt (SSB).
https://www.scuttlebutt.nz
GNU Affero General Public License v3.0
3.58k stars 335 forks source link

Set .ssb directory outside of main OS partition #1356

Closed Gaffen closed 3 years ago

Gaffen commented 3 years ago

Hey all,

I'm moving machines and I want to set up patchwork on my gaming machine, the problem is that space is a premium there. I want to move where the storage is kept to a secondary hard drive, so that I can afford to store the size of storage that scuttlebutt requires. I'm also on a Windows system - I tried creating a shortcut to the .ssb folder, but this didn't seem to work - though I'm pretty sure it'd work on a unix system with a symlink.

Is this possible? Any tips? I miss chatting with butts, so any advice is appreciated!

-Gaffen

black-puppydog commented 3 years ago

So I don't run Windows, but I remember that they do have some form of symlinks like we do on unix. This superuser answer seems to suggest that you could try this from the command line:

mklink /J D:\ssb-data C:\Users\[Username]\somethingsomething\.ssb

Not sure what the implications are though. Make a backup of your secret and conn.json files before you try that. :slightly_smiling_face:

In terms of building this sort of support into patchwork, that's a long-lasting dream of mine, but I don't know at which depths the ssb stack assumes that specific storage location. Would be an interesting project though... :thinking:

black-puppydog commented 3 years ago

@Gaffen please do report back if you try this, I'd be curious to hear the results. It's such a non-issue on Unix, but of course we'd like to have a solution for Windows too, even if it requires commandline magic. That's better than nothing.

Gaffen commented 3 years ago

Sorry I'm still kind of between machines right now, but I'll give this a try and let you know the results ASAP :)

Gaffen commented 3 years ago

Update; I've just successfully transferred everything from my old mac to my windows PC, using the windows 'symlink' approach and it seems to be working!