惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
MyScale Blog
MyScale Blog
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
V
V2EX
MongoDB | Blog
MongoDB | Blog
Microsoft Security Blog
Microsoft Security Blog
博客园 - 三生石上(FineUI控件)
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
H
Help Net Security
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
T
The Blog of Author Tim Ferriss
C
Check Point Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

GeekPlux

Setting Up Umami as Your Google Analytics Alternative: A Step-by-Step Guide Enhance Your Internet Privacy in 2023 Refactor your blog comments system with Webmention.io Three Levels of Information Perception Legacy code best practice: how to take over an existing project smoothly How to use tailwindcss with AMP in a Next.js project netjsongraph.js – Google Summer of Code (GSoC) 2017 summary
How to Sync Logseq Plugins, Themes and Settings Across Mu...
GeekPlux · 2023-07-22 · via GeekPlux

TL;DR: Sync the .logseq directory (including settings, themes, plugins, config, preferences.json) across devices and create soft links for these setting files.


Logseq, a robust platform for knowledge management and note-taking, offers users the ability to install a wide array of plugins to enhance productivity. However, these plugins and their associated settings are device-specific and do not automatically synchronize across different devices. This guide provides a detailed walkthrough on how to synchronize your Logseq plugins and settings across multiple devices.

This guide primarily focuses on synchronizing plugins and settings, excluding the actual pages, blocks, or graphs, as they usually have their own synchronization methods.

Assuming you are starting from your main machine, this guide will help you install and synchronize all your settings and plugins of Logseq to a new machine.

Step 1: Locate the .logseq Directory

The first step involves locating the .logseq directory on your device (your main machine). This directory houses all Logseq plugins and settings. The location of this directory varies depending on the operating system but is typically found in $HOME:

  • Linux: $HOME/.logseq
  • macOS: $HOME/.logseq
  • Windows: %USERPROFILE%/.logseq

Step 2: Backup the .logseq Directory

Once you've located the .logseq directory, the next step is to create a backup. (It's crucial to create a backup every time you plan to migrate or make any significant changes). Copy the .logseq directory, excluding the graphs and git sub-folders, to your backup location, which is usually where your Logseq pages and content are located.

For instance, I store all my Logseq pages in my Dropbox and manage their versions by pushing them to GitHub. You can see my settings and plugins in my GitHub repository.

Step 3: Transfer the .logseq Directory to the New Device

To use your plugins and their settings on another device, copy or synchronize (using your preferred method) the .logseq directory to your new device.

The final step is creating soft links to manage the the .logseq folder. This ensures that these configuration files remain consistent across different computers.

You can refer to my bash script for creating soft links:

current_dir="$(pwd)/.logseq"
target_dir="${HOME}/.logseq"

ln -s ${current_dir}/preferences.json ${target_dir}
ln -s ${current_dir}/config ${target_dir}
ln -s ${current_dir}/plugins ${target_dir}
ln -s ${current_dir}/settings ${target_dir}

Finally, when you open Logseq on your new device, you will find everything synchronized seamlessly!


References: