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

推荐订阅源

量子位
Recent Announcements
Recent Announcements
D
Docker
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
腾讯CDC
B
Blog
博客园_首页
罗磊的独立博客
D
DataBreaches.Net
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
M
MIT News - Artificial intelligence

GeekPlux

一代人的博客,一代人的青春注脚 那些年我打过的日结工 来美国的两年后 2023 一蓑烟雨 在美国拥有一辆 Tesla 的成本 我的 Workspaces 十年进化史 Setting Up Umami as Your Google Analytics Alternative: A Step-by-Step Guide 迁移豆瓣读书记录到 goodreads Enhance Your Internet Privacy in 2023 Refactor your blog comments system with Webmention.io 来美国之后,如何快速安顿下来 Three Levels of Information Perception 疫情三年 与人聊天的美好 我获取信息的方法 2022 版 我是如何学会编程的 Legacy code best practice: how to take over an existing project smoothly 2020 恍如隔世 接外包的一些坑和小技巧 论交友 往返香港隔离指南 即将失明,还能继续做程序员吗 小谈我对新技术的态度 How to use tailwindcss with AMP in a Next.js project 远程工作如何提高效率 复式记账、财报、量化与图论 我为什么从阿里巴巴离职 2019 柳暗花明 投资被动型指数基金正在造成下一次金融泡沫? 三种主流的网赚套利,躺着赚钱?
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: