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

推荐订阅源

GbyAI
GbyAI
J
Java Code Geeks
雷峰网
雷峰网
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
Vulnerabilities – Threatpost
S
Securelist
The Hacker News
The Hacker News
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
AI
AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
博客园 - 司徒正美
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
U
Unit 42
V
V2EX
V2EX - 技术
V2EX - 技术
L
LINUX DO - 最新话题
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
美团技术团队
小众软件
小众软件
F
Fortinet All Blogs

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 Multiple Devices
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: