Zlog
首页归档关于
Zlog

一个探索技术、编程和构建 Web 的个人空间。

© 2026 Zlog

导航

首页归档关于

链接

/
|
·
·
·
首页/Zlog Deployment Guide (2/3): Turso Cloud Sync

Zlog Deployment Guide (2/3): Turso Cloud Sync

Sync your blog to a Turso cloud database: sign up, create a DB, paste the connection URL into the desktop app, and verify.

A

Admin

2026年8月16日·2 分钟
|
ZlogguideTurso

Zlog Deployment Guide (2/3): Turso Cloud Sync

The first post covered the three modes; this one is step two: sync your blog to a Turso cloud database — local use stays fast, and the cloud copy is a safe backup and the source of truth for multiple devices.

Why Sync

  • Data safety: posts, images, and comments live on this machine. If the disk dies or the directory is deleted, everything is gone. Synced, the cloud DB is a real-time backup.
  • Multi-device consistency: install Zlog on a desktop and a laptop, paste the same connection URL, and content stays in sync.
  • Ready for publishing: the Vercel deploy reuses these exact sync credentials — see part 3.

Step 1: Sign Up for Turso and Create a Database

  1. Open Turso and sign up (the free tier covers a personal blog: hundreds of thousands of rows, unlimited reads).
  2. In the console click Create Database, pick a name (e.g. my-blog), and choose a region close to you (e.g. Tokyo / Singapore).
  3. On the database page grab two things:
    • URL: e.g. libsql://my-blog-username.aws-ap-northeast-1.turso.io
    • Token: click Generate Token and create a read/write token — copy it immediately; it is shown only once.

Step 2: Fill in the Sync Settings in the Desktop App

  1. Open Zlog → Settings → Sync.
  2. Paste:
    • Database URL: the libsql://... connection URL
    • Token: the token from step 1
  3. Click Save & Sync — the app runs a full sync immediately; from then on every post, upload, and comment syncs automatically.

Verify & Day-to-Day

  • Sync status is visible in Settings (last sync time / error hints).
  • New machine: install Zlog → paste the same connection URL → everything is restored.
  • To confirm, open Explore Data in the Turso console and check the posts and media tables.

Notes

  • Token scope: use a read/write token (you need to write); a read-only token makes saves fail.
  • Free tier: Turso's free plan has storage/row limits (a personal blog stays far below them); the console warns before you'd ever hit them.
  • Offline: the local DB is an embedded replica — you can write offline, and changes sync back when you're online.

Next: One-Click Deploy to Vercel

标签

ZlogguideTurso

评论 (0)

相关文章

Zlog 部署指南(一):三种方式怎么选

本地使用、Turso 云端同步、一键发布 Vercel——三种方式怎么选?一张对比表 + 决策树,5 分钟上手。

2026年8月16日·4 分钟

Zlog 部署指南(二):Turso 云端同步

把博客数据同步到 Turso 云端库:注册建库、桌面端填入连接串、验证同步,数据安全与多端一致。

2026年8月16日·4 分钟

Zlog 部署指南(三):一键部署到 Vercel,发布公网

注册 Vercel、生成 Token、桌面端一键部署——无需 Git 和命令行,2-5 分钟把博客发布成公开网站。

2026年8月16日·7 分钟

← 返回文章列表