How to move local directory of a sync-ed logseq graph

Long time user, first time poster here.

I have a much-loved logseq graph that I’ve been adding to for about a year. When I first started this, I didn’t really know what I was doing, and downloaded my sync-ed folder onto a onedrive folder. I haven’t really had any problems with the folder being there, but I’d rather move this onto something where some other app won’t decide to delete files at some point.

What I’d like to do is to delete the graph from my onedrive desktop, and then re-add the sync-ed logseq graph, saving it to a different location on my computer.

I don’t see an option on the desktop app to delete the graph. Is there some way to do this? Are there steps I can take to minimize loss of data through this process?

Thanks for a great product, and thanks in advance for any help you can offer.

Welcome to the community @rpmuller!

You’re right, it’s not clear how to move a graph. In the Logseq Sync manual there’s a snippet that might be useful for you (even if you don’t use Logseq Sync; the steps explain how to safely move the directory of a graph):

1. Unlink your graph

In the top of the left sidebar, click your graph name and then the All Graphs button.

On the All Graphs page you’ll see all of your graphs. Click the Unlink button after your graph that you wish to sync using Logseq Sync.

Keep this All Graphs page open for the third step.

2. Move your graph folder

Using File Explorer (Windows) or Finder (Mac), move the folder containing your graph out of any synced folder, onto your local device only.

If you’re using Logseq on iOS, make sure that your store the graph in the Logseq folder on your iPhone or iPad. If you store the graph outside of the Logseq folder, you won’t be able to use Sync. Don’t see the local Logseq folder? Restarting your iOS device will solve the issue.

3. Link your graph

On the All Graphs page, click the button that says Open a local directory and select the local folder that contains your graph. You’re now ready to follow the rest of this guide.

Let me know if you have any questions.

It looks like that worked. Thanks very much for your help!

1 Like