Portable Recommendations for DB Edition

What are the recommendations for using DB edition portably? I’ve tried to get it to work but just made a big mess in the process.

In MD edition I used my graph as a portable object. By that I mean I installed Logseq (or ran the portable version) on whatever PC I was using. The installation method did not matter to me. But what did matter was storing my actual graph data on an external drive. Then, I just brought the drive with me and opened it with Logseq.

But I can’t figure out how to get the SQLite database to live on an external drive in DB edition. Is this possible? I tried by making a python script that creates a Symlink in the Logseq projects directory that leads to my external drive database location. This kinda worked but for some reason in the ⸉All Graphs⸉ page it didn’t exist. But I could open it anyways by importing a new graph under the same name pointing at the already existing .sqlite file. Then all I needed to do was run my Symlink script as an admin on any device I use then each time I open Logseq I would import the graph again. Which is annoying but doable if I have admin privileges. But today my database corrupted and I can no longer open it. So╌clearly╌this way of doing it isn’t the path forward.

What is the recommended workflow for having a portable database in Logseq DB edition?

1 Like