-
Notifications
You must be signed in to change notification settings - Fork 203
Migration SQLite to Postgres EN
likaia edited this page Jan 22, 2026
·
1 revision
SQLite is deprecated. Version > 1.5.3 requires PostgreSQL.
- No SQLite data import. We rebuild by re-parsing logs.
- The legacy SQLite file will be removed after migration.
Migration notice appears when:
-
var/nginxpulse_data/nginxpulse.dbexists, and -
var/nginxpulse_data/pg_migration_donedoes not exist.
Once migration is done, pg_migration_done is created and the notice will not show again.
When user confirms:
- Clear existing stats and logs.
- Re-parse logs into PostgreSQL.
- Write migration marker and remove SQLite file.
API:
POST /api/logs/reparse
{
"id": "",
"migration": true
}POST /api/logs/reparse
{
"id": ""
}- During migration, stats may be incomplete until parsing finishes.
- Ensure log files are readable and not deleted.
- Changing
websites[].namecreates a new site ID.
- Home
- 快速开始
- 部署方式
- SQLite -> PostgreSQL 迁移
- 配置说明
- 完整字段参考
- 日志来源配置
- 支持的日志格式
- Agent 采集
- 日志解析机制
- IP 归属地解析
- 数据库结构
- 常见问题
- Home (EN)
- Quick Start (EN)
- Deployment (EN)
- Migration (EN)
- Configuration (EN)
- Config Reference (EN)
- Log Sources (EN)
- Supported Log Formats (EN)
- Agent Collection (EN)
- Log Parsing (EN)
- IP Geo (EN)
- Database Schema (EN)
- FAQ (EN)